libgadu  1.12.2
Definicje | Definicje typów | Funkcje
Dokumentacja pliku protobuf.h
Wykres zależności załączania dla protobuf.h:
Ten wykres pokazuje, które pliki bezpośrednio lub pośrednio załączają ten plik:

Definicje

#define LIBGADU_PROTOBUF_H
 
#define GG_PROTOBUF_VALID(gs, name, msg)
 
#define GG_PROTOBUF_SEND(gs, ge, packet_type, msg_type, msg)
 

Definicje typów

typedef size_t(* gg_protobuf_size_cb_t) (const void *message)
 
typedef size_t(* gg_protobuf_pack_cb_t) (const void *message, uint8_t *out)
 
typedef struct _gg_protobuf_uin_buff gg_protobuf_uin_buff_t
 

Funkcje

void gg_protobuf_expected (struct gg_session *gs, const char *field_name, uint32_t value, uint32_t expected)
 
int gg_protobuf_valid_chknull (struct gg_session *gs, const char *msg_name, int isNull)
 
int gg_protobuf_valid_chkunknown (struct gg_session *gs, const char *msg_name, ProtobufCMessage *base)
 
int gg_protobuf_send_ex (struct gg_session *gs, struct gg_event *ge, int type, void *msg, gg_protobuf_size_cb_t size_cb, gg_protobuf_pack_cb_t pack_cb)
 
void gg_protobuf_set_uin (ProtobufCBinaryData *dst, uin_t uin, gg_protobuf_uin_buff_t *buff)
 
uin_t gg_protobuf_get_uin (ProtobufCBinaryData uin_data)
 

Dokumentacja definicji

◆ LIBGADU_PROTOBUF_H

#define LIBGADU_PROTOBUF_H

◆ GG_PROTOBUF_VALID

#define GG_PROTOBUF_VALID (   gs,
  name,
  msg 
)
Wartość:
(gg_protobuf_valid_chknull(gs, name, msg == NULL) && \
gg_protobuf_valid_chkunknown(gs, name, &msg->base) && \
msg != NULL)
int gg_protobuf_valid_chknull(struct gg_session *gs, const char *msg_name, int isNull)
Definition: protobuf.c:46

◆ GG_PROTOBUF_SEND

#define GG_PROTOBUF_SEND (   gs,
  ge,
  packet_type,
  msg_type,
  msg 
)
Wartość:
gg_protobuf_send_ex(gs, ge, packet_type, &msg, \
(gg_protobuf_size_cb_t) msg_type ## __get_packed_size, \
(gg_protobuf_pack_cb_t) msg_type ## __pack)
int gg_protobuf_send_ex(struct gg_session *gs, struct gg_event *ge, int type, void *msg, gg_protobuf_size_cb_t size_cb, gg_protobuf_pack_cb_t pack_cb)
Definition: protobuf.c:67
size_t(* gg_protobuf_size_cb_t)(const void *message)
Definition: protobuf.h:36
size_t(* gg_protobuf_pack_cb_t)(const void *message, uint8_t *out)
Definition: protobuf.h:37

Dokumentacja definicji typów

◆ gg_protobuf_size_cb_t

typedef size_t(* gg_protobuf_size_cb_t) (const void *message)

◆ gg_protobuf_pack_cb_t

typedef size_t(* gg_protobuf_pack_cb_t) (const void *message, uint8_t *out)

◆ gg_protobuf_uin_buff_t

Dokumentacja funkcji

◆ gg_protobuf_expected()

void gg_protobuf_expected ( struct gg_session gs,
const char *  field_name,
uint32_t  value,
uint32_t  expected 
)

◆ gg_protobuf_valid_chknull()

int gg_protobuf_valid_chknull ( struct gg_session gs,
const char *  msg_name,
int  isNull 
)

◆ gg_protobuf_valid_chkunknown()

int gg_protobuf_valid_chkunknown ( struct gg_session gs,
const char *  msg_name,
ProtobufCMessage *  base 
)

◆ gg_protobuf_send_ex()

int gg_protobuf_send_ex ( struct gg_session gs,
struct gg_event ge,
int  type,
void *  msg,
gg_protobuf_size_cb_t  size_cb,
gg_protobuf_pack_cb_t  pack_cb 
)

◆ gg_protobuf_set_uin()

void gg_protobuf_set_uin ( ProtobufCBinaryData *  dst,
uin_t  uin,
gg_protobuf_uin_buff_t buff 
)

◆ gg_protobuf_get_uin()

uin_t gg_protobuf_get_uin ( ProtobufCBinaryData  uin_data)