diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2010-04-20 14:36:38 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2010-04-20 14:36:38 +0000 |
commit | c60d75a58eb933006899e152099dec3900b7bddc (patch) | |
tree | 5cbf60ac31799270dca35ce05a49334a5ed0857f /pjsip/include | |
parent | ae2ca64fc09a15a01995613d032480e92a94cada (diff) |
Ticket #1057: Implemented pjsua_modify_acc().
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3144 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_auth.h | 12 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_auth.h b/pjsip/include/pjsip/sip_auth.h index b1b28f54..eb835d27 100644 --- a/pjsip/include/pjsip/sip_auth.h +++ b/pjsip/include/pjsip/sip_auth.h @@ -234,6 +234,18 @@ PJ_DECL(void) pjsip_cred_info_dup(pj_pool_t *pool, const pjsip_cred_info *src); /** + * Compare two credential infos. + * + * @param cred1 The credential info to compare. + * @param cred2 The credential info to compare. + * + * @return 0 if both credentials are equal. + */ +PJ_DECL(int) pjsip_cred_info_cmp(const pjsip_cred_info *cred1, + const pjsip_cred_info *cred2); + + +/** * Type of function to lookup credential for the specified name. * * @param pool Pool to initialize the credential info. diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index 647adc06..877e6b8e 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -141,6 +141,8 @@ typedef struct pjsua_acc unsigned ka_target_len; /**< Length of ka_target. */ pjsip_route_hdr route_set; /**< Complete route set inc. outbnd.*/ + pj_uint32_t global_route_crc; /** CRC of global route setting. */ + pj_uint32_t local_route_crc; /** CRC of account route setting.*/ unsigned cred_cnt; /**< Number of credentials. */ pjsip_cred_info cred[PJSUA_ACC_MAX_PROXIES]; /**< Complete creds. */ |