summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib/pjsua_internal.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-08-15 20:26:34 +0000
committerBenny Prijono <bennylp@teluu.com>2006-08-15 20:26:34 +0000
commit540278de72f88da8853d86dc3b655fe9bb3013b5 (patch)
treeda69840039428b7daa2f1806d9d72eae13d51157 /pjsip/include/pjsua-lib/pjsua_internal.h
parentab77e4d8b4ddc20d6018d67c739e3317e4746c49 (diff)
Support for PUBLISH (RFC 3903):
- API BREAK: pjsua_pres_create_uac() API CHANGED!! Added options in the function, to allow creating SUBSCRIBE without ";id=" parameter in the Event header. - the generic event publication in pjsip-simple/publish.[hc] - split PIDF and X-PIDF body generation and parsing into pjsip-simple/presence_body.c. - allow NULL in module parameter in pjsip_endpt_add_capability() - added "--publish" option in PJSUA. - by default, PJSUA-LIB will not add ";id=" parameter in Event header in the SUBSCRIBE request since lots of server and user agents don't support this correctly. - Set version to 0.5.7.6. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@685 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua_internal.h')
-rw-r--r--pjsip/include/pjsua-lib/pjsua_internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h
index c862219f..8b1002b4 100644
--- a/pjsip/include/pjsua-lib/pjsua_internal.h
+++ b/pjsip/include/pjsua-lib/pjsua_internal.h
@@ -97,6 +97,8 @@ typedef struct pjsua_acc
pj_bool_t online_status; /**< Our online status. */
pjsua_srv_pres pres_srv_list; /**< Server subscription list. */
+ pjsip_publishc *publish_sess; /**< Client publication session. */
+ pj_bool_t publish_state; /**< Last published online status */
} pjsua_acc;
@@ -255,8 +257,13 @@ PJ_INLINE(pjsua_im_data*) pjsua_im_data_dup(pj_pool_t *pool,
}
+#if 0
#define PJSUA_LOCK() pj_mutex_lock(pjsua_var.mutex);
#define PJSUA_UNLOCK() pj_mutex_unlock(pjsua_var.mutex);
+#else
+#define PJSUA_LOCK()
+#define PJSUA_UNLOCK()
+#endif
@@ -286,6 +293,11 @@ void pjsua_pres_refresh(void);
void pjsua_pres_shutdown(void);
/**
+ * Init presence for aoocunt.
+ */
+pj_status_t pjsua_pres_init_acc(int acc_id);
+
+/**
* Terminate server subscription for the account
*/
void pjsua_pres_delete_acc(int acc_id);