ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
icq_snac_handlers.h
Idź do dokumentacji tego pliku.
1 #ifndef __ICQ_SNAC_H
2 #define __ICQ_SNAC_H
3 
4 #include "icq.h"
5 
6 typedef struct { /* flap_packet_t->data ** if flap_packet_t->cmd == 0x02 */
7  guint16 family;
8  guint16 cmd;
9  guint16 flags;
10  guint32 ref;
11  unsigned char *data;
13 #define SNAC_PACKET_LEN 10
14 
15 void icq_makesnac(session_t *s, GString *pkt, guint16 fam, guint16 cmd, private_data_t *data, snac_subhandler_t subhandler);
16 void icq_makemetasnac(session_t *s, GString *pkt, guint16 type, guint16 subtype, private_data_t *data, snac_subhandler_t subhandler);
17 
18 int icq_snac_handler(session_t *s, guint16 family, guint16 cmd, unsigned char *buf, int len, guint16 flags, guint32 ref_no);
19 void icq_snac_error_handler(session_t *s, const char *from, guint16 error);
20 
23 
26 void display_whoami(session_t *s);
27 
28 void icq_pack_append_nullterm_msg(GString *pkt, const char *msg);
29 void icq_pack_append_rendezvous(GString *pkt, int version, int cookie, int mtype, int mflags, int accept, int priority);
30 
41 
42 #endif