ekg2
GIT master
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
plugins
icq
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
;
12
}
snac_packet_t
;
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
21
void
icq_snac_references_list_destroy
(
icq_snac_reference_list_t
**lista);
22
TIMER_SESSION
(
icq_snac_ref_list_cleanup
);
23
24
SNAC_SUBHANDLER
(
icq_my_meta_information_response
);
25
SNAC_SUBHANDLER
(
icq_cmd_addssi_ack
);
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
31
SNAC_HANDLER
(
icq_snac_service_handler
);
32
SNAC_HANDLER
(
icq_snac_location_handler
);
33
SNAC_HANDLER
(
icq_snac_buddy_handler
);
34
SNAC_HANDLER
(
icq_snac_message_handler
);
35
SNAC_HANDLER
(
icq_snac_bos_handler
);
36
SNAC_HANDLER
(
icq_snac_lookup_handler
);
37
SNAC_HANDLER
(
icq_snac_status_handler
);
38
SNAC_HANDLER
(
icq_snac_userlist_handler
);
39
SNAC_HANDLER
(
icq_snac_extension_handler
);
40
SNAC_HANDLER
(
icq_snac_sigon_handler
);
41
42
#endif
Wygenerowano Wt, 29 paź 2013 20:17:04 dla ekg2 programem
1.8.4