Tue May 20 07:45:46 EDT 2008 Pekka.Pessi@nokia.com

* nua_dialog.h: added NUA_DIALOG_USAGE_PRIVATE() and NUA_DIALOG_USAGE_PUBLIC()
  
  Macros to use with non-NULL pointers.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8605 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 13:50:32 +00:00
parent 7c51545014
commit c7fccda55c
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
Sat May 24 23:25:00 EDT 2008
Sun May 25 09:50:22 EDT 2008

View File

@ -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,