#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <syslog.h>
#include <sys/errno.h>
#include "thrift.h"
#include "transport/thrift_transport.h"
#include "transport/thrift_memory_buffer.h"
#include "transport/thrift_fake_transport.h"
#include "transport/thrift_file_transport.h"
#include "protocol/thrift_protocol.h"
#include "protocol/thrift_binary_protocol.h"
#include "protocol/thrift_xml_protocol.h"
Go to the source code of this file.
|
static uint64_t | os_get_value64 (const uint8_t *data) |
|
static void | os_put_value64 (uint8_t *data, uint64_t value) |
|
sandesh_info_t * | sandesh_find_info (sandesh_info_t *infos, const char *name) |
|
int32_t | sandesh_decode (u_int8_t *buf, u_int32_t buf_len, sandesh_find_info_fn sinfo_find_fn, int *error) |
|
int32_t | sandesh_encode (void *sandesh, const char *sname, sandesh_find_info_fn sinfo_find_fn, u_int8_t *buf, u_int32_t buf_len, int *error) |
|
int32_t | sandesh_get_encoded_length (void *sandesh, const char *sname, sandesh_find_info_fn sinfo_find_fn, int *error) |
|
#define os_free |
( |
|
ptr | ) |
free(ptr) |
#define os_log |
( |
|
level, |
|
|
|
format, |
|
|
|
arg... |
|
) |
| syslog(level, format, ##arg) |
#define OS_LOG_DEBUG LOG_DEBUG |
#define OS_LOG_ERR LOG_ERR |
#define os_malloc |
( |
|
size | ) |
malloc(size) |
#define os_realloc |
( |
|
ptr, |
|
|
|
size |
|
) |
| realloc(ptr, size) |
#define os_zalloc |
( |
|
size | ) |
calloc(1, size) |
typedef unsigned char ct_uuid_t[16] |
static uint64_t os_get_value64 |
( |
const uint8_t * |
data | ) |
|
|
inlinestatic |
static void os_put_value64 |
( |
uint8_t * |
data, |
|
|
uint64_t |
value |
|
) |
| |
|
inlinestatic |
int32_t sandesh_decode |
( |
u_int8_t * |
buf, |
|
|
u_int32_t |
buf_len, |
|
|
sandesh_find_info_fn |
sinfo_find_fn, |
|
|
int * |
error |
|
) |
| |
int32_t sandesh_encode |
( |
void * |
sandesh, |
|
|
const char * |
sname, |
|
|
sandesh_find_info_fn |
sinfo_find_fn, |
|
|
u_int8_t * |
buf, |
|
|
u_int32_t |
buf_len, |
|
|
int * |
error |
|
) |
| |
int32_t sandesh_get_encoded_length |
( |
void * |
sandesh, |
|
|
const char * |
sname, |
|
|
sandesh_find_info_fn |
sinfo_find_fn, |
|
|
int * |
error |
|
) |
| |