ekg2
GIT master
|
#include "ekg2.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include "icq.h"
#include "icq_snac_handlers.h"
#include "misc.h"
#include "miscicq.h"
#include "icq_debug.inc"
Definicje | |
#define | MAX_BYTES_PER_LINE 16 |
Funkcje | |
void | icq_hexdump (int level, unsigned char *p, size_t len) |
static void | icq_pack_common (GString *str, char *format, va_list ap) |
GString * | icq_pack_append (GString *str, char *format,...) |
GString * | icq_pack (char *format,...) |
guint32 | icq_string_to_BE (unsigned char *buf, int len) |
int | icq_unpack_common (unsigned char *buf, unsigned char **endbuf, int *l, char *format, va_list ap) |
int | icq_unpack (unsigned char *buf, unsigned char **endbuf, int *l, char *format,...) |
int | icq_unpack_nc (unsigned char *buf, int len, char *format,...) |
static void | tlv_free_do_nothing (icq_tlv_t *data) |
static void | icq_tlvs_add (icq_tlv_t **lista, icq_tlv_t *new_) |
void | icq_tlvs_destroy (icq_tlv_t **lista) |
icq_tlv_t * | icq_tlv_get (struct icq_tlv_list *l, guint16 type) |
struct icq_tlv_list * | icq_unpack_tlvs (unsigned char **str, int *maxlen, unsigned int maxcount) |
struct icq_tlv_list * | icq_unpack_tlvs_nc (unsigned char *str, int maxlen, unsigned int maxcount) |
guint16 | icq_status (int status) |
status_t | icq2ekg_status2 (int nMsgType) |
status_t | icq2ekg_status (int icq_status) |
int | tlv_length_check (char *name, icq_tlv_t *t, int length) |
char * | icq_encryptpw (const char *pw) |
const char * | icq_lookuptable (struct fieldnames_t *table, int code) |
void | icq_pack_append_client_identification (GString *pkt) |
void | icq_convert_string_init () |
void | icq_convert_string_destroy () |
char * | icq_convert_from_ucs2be (char *buf, int len) |
GString * | icq_convert_to_ucs2be (char *text) |
void | icq_send_snac (session_t *s, guint16 family, guint16 cmd, private_data_t *data, snac_subhandler_t subhandler, char *format,...) |
void | icq_rates_destroy (session_t *s) |
void | icq_rates_init (session_t *s, int n_rates) |
Zmienne | |
void * | ucs2be_conv_in = (void*) -1 |
void * | ucs2be_conv_out = (void*) -1 |
#define MAX_BYTES_PER_LINE 16 |
status_t icq2ekg_status | ( | int | icq_status | ) |
status_t icq2ekg_status2 | ( | int | nMsgType | ) |
char* icq_convert_from_ucs2be | ( | char * | buf, |
int | len | ||
) |
void icq_convert_string_destroy | ( | ) |
void icq_convert_string_init | ( | ) |
GString* icq_convert_to_ucs2be | ( | char * | text | ) |
char* icq_encryptpw | ( | const char * | pw | ) |
void icq_hexdump | ( | int | level, |
unsigned char * | p, | ||
size_t | len | ||
) |
const char* icq_lookuptable | ( | struct fieldnames_t * | table, |
int | code | ||
) |
GString* icq_pack | ( | char * | format, |
... | |||
) |
GString* icq_pack_append | ( | GString * | str, |
char * | format, | ||
... | |||
) |
void icq_pack_append_client_identification | ( | GString * | pkt | ) |
|
static |
void icq_rates_destroy | ( | session_t * | s | ) |
void icq_rates_init | ( | session_t * | s, |
int | n_rates | ||
) |
void icq_send_snac | ( | session_t * | s, |
guint16 | family, | ||
guint16 | cmd, | ||
private_data_t * | data, | ||
snac_subhandler_t | subhandler, | ||
char * | format, | ||
... | |||
) |
guint16 icq_status | ( | int | status | ) |
guint32 icq_string_to_BE | ( | unsigned char * | buf, |
int | len | ||
) |
icq_tlv_t* icq_tlv_get | ( | struct icq_tlv_list * | l, |
guint16 | type | ||
) |
void icq_tlvs_destroy | ( | icq_tlv_t ** | lista | ) |
int icq_unpack | ( | unsigned char * | buf, |
unsigned char ** | endbuf, | ||
int * | l, | ||
char * | format, | ||
... | |||
) |
int icq_unpack_common | ( | unsigned char * | buf, |
unsigned char ** | endbuf, | ||
int * | l, | ||
char * | format, | ||
va_list | ap | ||
) |
int icq_unpack_nc | ( | unsigned char * | buf, |
int | len, | ||
char * | format, | ||
... | |||
) |
struct icq_tlv_list* icq_unpack_tlvs | ( | unsigned char ** | str, |
int * | maxlen, | ||
unsigned int | maxcount | ||
) |
struct icq_tlv_list* icq_unpack_tlvs_nc | ( | unsigned char * | str, |
int | maxlen, | ||
unsigned int | maxcount | ||
) |
|
static |
int tlv_length_check | ( | char * | name, |
icq_tlv_t * | t, | ||
int | length | ||
) |
void* ucs2be_conv_in = (void*) -1 |
void* ucs2be_conv_out = (void*) -1 |