abyss_xmlrpc_int.h

Go to the documentation of this file.
00001 #ifndef SLEEP_INT_H_INCLUDED
00002 #define SLEEP_INT_H_INCLUDED
00003 
00004 #include <string.h>
00005 
00006 extern const char * const xmlrpc_strsol;
00007 
00008 void
00009 xmlrpc_millisecond_sleep(unsigned int const milliseconds);
00010 
00011 void 
00012 xmlrpc_asprintf(const char ** const retvalP, const char * const fmt, ...);
00013 
00014 void
00015 xmlrpc_strfree(const char * const string);
00016 
00017 static inline unsigned short 
00018 xmlrpc_streq(const char * const a,
00019              const char * const b) {
00020     return (strcmp(a, b) == 0);
00021 }
00022 
00023 static inline unsigned short
00024 xmlrpc_strcaseeq(const char * const a,
00025                  const char * const b) {
00026     return (strcasecmp(a, b) == 0);
00027 }
00028 
00029 static inline unsigned short
00030 xmlrpc_strneq(const char * const a,
00031               const char * const b,
00032               size_t       const len) {
00033     return (strncmp(a, b, len) == 0);
00034 }
00035 
00036 #define ATTR_UNUSED __attribute__((__unused__))
00037 
00038 #define DIRECTORY_SEPARATOR "/"
00039 
00040 #endif
00041 
00042 
00043 #ifndef XMLRPC_C_UTIL_INT_H_INCLUDED
00044 #define XMLRPC_C_UTIL_INT_H_INCLUDED
00045 
00046 typedef enum {
00047     false = 0,
00048    true = 1
00049 } bool;
00050 
00051 #define MIN(a,b) ((a) < (b) ? (a) : (b))
00052 #define MAX(a,b) ((a) > (b) ? (a) : (b))
00053 
00054 /* When we deallocate a pointer in a struct, we often replace it with
00055 ** this and throw in a few assertions here and there. */
00056 #define XMLRPC_BAD_POINTER ((void*) 0xDEADBEEF)
00057 
00058 #endif

Generated on Thu May 17 12:00:24 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6