ekg2
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 <stdint.h>
5
6
#include <
ekg/sessions.h
>
7
#include <
ekg/stuff.h
>
8
9
#include "
icq.h
"
10
11
typedef
struct
{
/* flap_packet_t->data ** if flap_packet_t->cmd == 0x02 */
12
uint16_t
family
;
13
uint16_t
cmd
;
14
uint16_t
flags
;
15
uint32_t
ref
;
16
unsigned
char
*
data
;
17
}
snac_packet_t
;
18
#define SNAC_PACKET_LEN 10
19
20
void
icq_makesnac
(
session_t
*s,
string_t
pkt, uint16_t fam, uint16_t cmd,
private_data_t
*data,
snac_subhandler_t
subhandler);
21
void
icq_makemetasnac
(
session_t
*s,
string_t
pkt, uint16_t
type
, uint16_t subtype,
private_data_t
*data,
snac_subhandler_t
subhandler);
22
23
int
icq_snac_handler
(
session_t
*s, uint16_t family, uint16_t cmd,
unsigned
char
*buf,
int
len, uint16_t flags, uint32_t ref_no);
24
void
icq_snac_error_handler
(
session_t
*s,
const
char
*from, uint16_t error);
25
26
void
icq_snac_references_list_destroy
(
icq_snac_reference_list_t
**lista);
27
TIMER_SESSION
(
icq_snac_ref_list_cleanup
);
28
29
SNAC_SUBHANDLER
(icq_my_meta_information_response);
30
SNAC_SUBHANDLER
(icq_cmd_addssi_ack);
31
void
display_whoami
(
session_t
*s);
32
33
void
icq_pack_append_nullterm_msg
(
string_t
pkt,
const
char
*
msg
);
34
void
icq_pack_append_rendezvous
(
string_t
pkt,
int
version,
int
cookie,
int
mtype,
int
mflags,
int
accept,
int
priority);
35
36
SNAC_HANDLER
(icq_snac_service_handler);
37
SNAC_HANDLER
(icq_snac_location_handler);
38
SNAC_HANDLER
(icq_snac_buddy_handler);
39
SNAC_HANDLER
(icq_snac_message_handler);
40
SNAC_HANDLER
(icq_snac_bos_handler);
41
SNAC_HANDLER
(icq_snac_lookup_handler);
42
SNAC_HANDLER
(icq_snac_status_handler);
43
SNAC_HANDLER
(icq_snac_userlist_handler);
44
SNAC_HANDLER
(icq_snac_extension_handler);
45
SNAC_HANDLER
(icq_snac_sigon_handler);
46
47
#endif
Wygenerowano N, 10 lut 2013 05:08:19 dla ekg2 programem
1.8.3.1