diff options
Diffstat (limited to 'pjsip/include/pjsip-simple/evsub.h')
-rw-r--r-- | pjsip/include/pjsip-simple/evsub.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pjsip/include/pjsip-simple/evsub.h b/pjsip/include/pjsip-simple/evsub.h index 2dc4d69c..31f85f8a 100644 --- a/pjsip/include/pjsip-simple/evsub.h +++ b/pjsip/include/pjsip-simple/evsub.h @@ -490,6 +490,26 @@ PJ_DECL(void) pjsip_evsub_set_mod_data( pjsip_evsub *sub, unsigned mod_id, PJ_DECL(void*) pjsip_evsub_get_mod_data( pjsip_evsub *sub, unsigned mod_id ); +/** + * Increment the event subscription's group lock. + * + * @param sub The server subscription instance. + * + * @return PJ_SUCCESS on success. + */ +PJ_DEF(pj_status_t) pjsip_evsub_add_ref(pjsip_evsub *sub); + + +/** + * Decrement the event subscription's group lock. + * + * @param sub The server subscription instance. + * + * @return PJ_SUCCESS on success. + */ +PJ_DEF(pj_status_t) pjsip_evsub_dec_ref(pjsip_evsub *sub); + + PJ_END_DECL |