Strophe 0.12
XMPP client library
Functions
deprecated.c File Reference

File with deprecated API functions. More...

Functions

void * xmpp_alloc (const xmpp_ctx_t *ctx, size_t size)
 Allocate memory in a Strophe context. More...
 
void * xmpp_realloc (const xmpp_ctx_t *ctx, void *p, size_t size)
 Reallocate memory in a Strophe context. More...
 
char * xmpp_strdup (const xmpp_ctx_t *ctx, const char *s)
 implement our own strdup that uses the ctx allocator More...
 
char * xmpp_strndup (const xmpp_ctx_t *ctx, const char *s, size_t len)
 Duplicate a string with a maximum length. More...
 
void xmpp_log (const xmpp_ctx_t *ctx, xmpp_log_level_t level, const char *area, const char *fmt, va_list ap)
 
void xmpp_error (const xmpp_ctx_t *ctx, const char *area, const char *fmt,...)
 Write to the log at the ERROR level. More...
 
void xmpp_warn (const xmpp_ctx_t *ctx, const char *area, const char *fmt,...)
 Write to the log at the WARN level. More...
 
void xmpp_info (const xmpp_ctx_t *ctx, const char *area, const char *fmt,...)
 Write to the log at the INFO level. More...
 
void xmpp_debug (const xmpp_ctx_t *ctx, const char *area, const char *fmt,...)
 Write to the log at the DEBUG level. More...
 
void xmpp_debug_verbose (int level, const xmpp_ctx_t *ctx, const char *area, const char *fmt,...)
 Write to the log at the DEBUG level if verbosity is enabled. More...
 
char * xmpp_strtok_r (char *s, const char *delim, char **saveptr)
 strtok_r(3) implementation. More...
 
int xmpp_snprintf (char *str, size_t count, const char *fmt,...)
 
int xmpp_vsnprintf (char *str, size_t count, const char *fmt, va_list arg)
 
void xmpp_conn_set_keepalive (xmpp_conn_t *conn, int timeout, int interval)
 Set TCP keepalive parameters Turn on TCP keepalive and set timeout and interval. More...
 

Detailed Description

File with deprecated API functions.

Function Documentation

◆ xmpp_log()

void xmpp_log ( const xmpp_ctx_t *  ctx,
xmpp_log_level_t  level,
const char *  area,
const char *  fmt,
va_list  ap 
)

◆ xmpp_snprintf()

int xmpp_snprintf ( char *  str,
size_t  count,
const char *  fmt,
  ... 
)

◆ xmpp_vsnprintf()

int xmpp_vsnprintf ( char *  str,
size_t  count,
const char *  fmt,
va_list  arg 
)