Commit eb043022 authored by Pekka Pessi's avatar Pekka Pessi

nua_dialog.h: added NUA_DIALOG_USAGE_PRIVATE() and NUA_DIALOG_USAGE_PUBLIC()

Macros to use with non-NULL pointers.

darcs-hash:20080520114546-65a35-69f1b58dd5123cdc8ea0b154506fa19d7d1fdfeb.gz
parent e81681d7
......@@ -501,6 +501,9 @@ nua_dialog_usage_t *nua_dialog_usage_public(void const *p)
#define nua_dialog_usage_public(p) ((p) ? (nua_dialog_usage_t*)(p) - 1 : NULL)
#endif
#define NUA_DIALOG_USAGE_PRIVATE(du) ((void *)((du) + 1))
#define NUA_DIALOG_USAGE_PUBLIC(pu) ((void *)((nua_dialog_usage_t *)(pu) - 1))
/* ---------------------------------------------------------------------- */
int nua_client_create(nua_owner_t *owner,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment