Browse Source

Build feedback model and expose committed state events

master
evgeny 5 days ago
parent
commit
8121f93d2e
  1. 4
      src/Makefile.am
  2. 1
      src/chat/chat_event.h

4
src/Makefile.am

@ -108,6 +108,10 @@ utun_CORE_SOURCES = \
chat/chat_core.c \
chat/chat_member.c \
chat/chat_msg.c \
chat/chat_feedback.c \
chat/chat_feedback.h \
chat/chat_feedback.c \
chat/chat_feedback.h \
chat/chat_whisper.c \
chat/chat_channel.c \
chat/chat_profile.c \

1
src/chat/chat_event.h

@ -74,6 +74,7 @@ extern "C" {
#define CHAT_EVT_MEMBER_FILES_TRANSFER 50 /* id/group/server/owner/done/total:8LE,status:2LE,state:1 */
#define CHAT_EVT_AVATAR_RESULT 51 /* request_id/group:8LE, failed:1; результат публикации ссылки профиля */
#define CHAT_EVT_GROUP_AVATAR_RESULT 52 /* request_id/group:8LE, failed:1; результат публикации аватарки группы */
#define CHAT_EVT_FEEDBACK_CHANGED 53 /* [channel_len:1][channel][message_id:32][kind:1] — состояние после commit */
typedef void (*chat_event_handler_fn)(struct UTUN_INSTANCE* inst, int type, const uint8_t* data, int len);

Loading…
Cancel
Save