libxrdeveloper's documentation
Defines | Enumerations | Functions | Variables
xr-lib.h File Reference

XML-RPC Library Setup API. More...

#include <glib.h>
#include "xr-config.h"

Go to the source code of this file.

Defines

#define xr_debug(mask, fmt, args...)   do { if (G_UNLIKELY(xr_debug_enabled & mask)) _xr_debug(G_STRLOC ": ", fmt, ## args); } while(0)
 Conditional debug message.
#define xr_trace(mask, fmt, args...)   do { if (G_UNLIKELY(xr_debug_enabled & mask)) _xr_debug(G_STRFUNC, fmt, ## args); } while(0)
 Conditional trace message.

Enumerations

enum  {
  XR_DEBUG_HTTP = (1 << 0), XR_DEBUG_HTTP_TRACE = (1 << 1), XR_DEBUG_SERVER = (1 << 2), XR_DEBUG_SERVER_TRACE = (1 << 3),
  XR_DEBUG_CLIENT = (1 << 4), XR_DEBUG_CLIENT_TRACE = (1 << 5), XR_DEBUG_SERVLET = (1 << 6), XR_DEBUG_SERVLET_TRACE = (1 << 7),
  XR_DEBUG_CALL = (1 << 8), XR_DEBUG_CALL_TRACE = (1 << 9), XR_DEBUG_VALUE = (1 << 10), XR_DEBUG_LIB = (1 << 11),
  XR_DEBUG_ALL = 0xffffffff
}

Functions

G_BEGIN_DECLS void _xr_debug (const char *loc, const char *fmt,...)
 Log message.
void xr_init ()
 Initialize libxr.
void xr_fini ()
 Finalize libxr.

Variables

int xr_debug_enabled
 Global variable used to enable debugging messages.

Detailed Description

XML-RPC Library Setup API.

Using this API you can turn on debuging and logging.

Documentation for libxr, Wed Feb 29 2012 09:04:04.