30 #include "ortp/event.h" 38 typedef struct _OList OList;
41 #define o_list_next(elem) ((elem)->next) 43 OList * o_list_append(OList *elem,
void * data);
44 OList * o_list_remove(OList *list,
void *data);
45 OList * o_list_free(OList *elem);
48 #define MIN(a,b) (((a)>(b)) ? (b) : (a)) 51 #define MAX(a,b) (((a)>(b)) ? (a) : (b)) 54 #define return_if_fail(expr) if (!(expr)) {printf("%s:%i- assertion"#expr "failed\n",__FILE__,__LINE__); return;} 55 #define return_val_if_fail(expr,ret) if (!(expr)) {printf("%s:%i- assertion" #expr "failed\n",__FILE__,__LINE__); return (ret);} 58 #define INT_TO_POINTER(truc) ((long)(long)(truc)) 59 #define POINTER_TO_INT(truc) ((int)(long)(truc)) 79 #define hton24(x) ((( (x) & 0x00ff0000) >>16) | (( (x) & 0x000000ff) <<16) | ( (x) & 0x0000ff00) ) 81 #define ntoh24(x) hton24(x) 83 #if defined(WIN32) || defined(_WIN32_WCE) 84 #define is_would_block_error(errnum) (errnum==WSAEWOULDBLOCK) 86 #define is_would_block_error(errnum) (errnum==EWOULDBLOCK || errnum==EAGAIN)
Definition: str_utils.h:27