diff options
Diffstat (limited to 'include/dchat/IncomingMessage.hpp')
-rw-r--r-- | include/dchat/IncomingMessage.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/dchat/IncomingMessage.hpp b/include/dchat/IncomingMessage.hpp new file mode 100644 index 0000000..b20e4d1 --- /dev/null +++ b/include/dchat/IncomingMessage.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "types.hpp" +#include "Range.hpp" +#include <functional> + +namespace dchat +{ + struct IncomingMessagePart + { + enum class Type + { + TEXT, + EMOJI + }; + + Type type; + Range textRange; + }; + + void parseIncomingMessage(const char *text, usize size, std::function<void(IncomingMessagePart)> callbackFunc); +}
\ No newline at end of file |