A library for a decentralised peer-to-peer chat over IPv6 only.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
1234567891011121314151617181920212223242526
  1. #ifndef LC6_LIBCHAT6_H
  2. #define LC6_LIBCHAT6_H
  3. enum LIBCHAT_USER_STATUS {
  4. LC6_STATUS_OFFLINE = 0,
  5. LC6_STATUS_ONLINE,
  6. LC6_STATUS_AWAY,
  7. LC6_STATUS_TYPING
  8. };
  9. typedef struct LIBCHAT_EVENT {
  10. int event_type;
  11. union {
  12. int a;
  13. int b;
  14. } event;
  15. } LIBCHAT_EVENT;
  16. typedef void *LIBCHAT;
  17. typedef int(*LIBCHAT_CB)(LIBCHAT_EVENT*);
  18. LIBCHAT* libchat_init(char *path, unsigned char *password);
  19. int libchat_event_reg(LIBCHAT *ctx, LIBCHAT_CB *cb);
  20. int libchat_start(LIBCHAT *ctx);
  21. #endif