Commit 41c358d4 authored by Pekka Pessi's avatar Pekka Pessi

Naming soa_sip_require() and soa_sip_supported() consistently.

The SIP headers are called Require and Supported.

darcs-hash:20051014074944-65a35-07699c3b34093c126898ae0b28fad0d1733d7422.gz
parent ec4f1740
......@@ -840,29 +840,29 @@ char **soa_base_media_features(soa_session_t *ss, int live, su_home_t *home)
return su_zalloc(home, 8 * sizeof (char **));
}
char const * const * soa_sip_required(soa_session_t const *ss)
char const * const * soa_sip_require(soa_session_t const *ss)
{
if (ss)
return ss->ss_actions->soa_sip_required(ss);
return ss->ss_actions->soa_sip_require(ss);
else
return (void)(errno = EFAULT), NULL;
}
char const * const * soa_base_sip_required(soa_session_t const *ss)
char const * const * soa_base_sip_require(soa_session_t const *ss)
{
static char const *null = NULL;
return &null;
}
char const * const * soa_sip_support(soa_session_t const *ss)
char const * const * soa_sip_supported(soa_session_t const *ss)
{
if (ss)
return ss->ss_actions->soa_sip_support(ss);
return ss->ss_actions->soa_sip_supported(ss);
else
return (void)(errno = EFAULT), NULL;
}
char const * const * soa_base_sip_support(soa_session_t const *ss)
char const * const * soa_base_sip_supported(soa_session_t const *ss)
{
static char const *null = NULL;
return &null;
......
......@@ -104,8 +104,8 @@ int soa_get_local_sdp(soa_session_t const *ss,
char const **return_sdp,
int *return_len);
char const * const * soa_sip_required(soa_session_t const *ss);
char const * const * soa_sip_support(soa_session_t const *ss);
char const * const * soa_sip_require(soa_session_t const *ss);
char const * const * soa_sip_supported(soa_session_t const *ss);
int soa_remote_sip_features(soa_session_t *ss,
char const * const * support,
......
......@@ -95,8 +95,8 @@ struct soa_session_actions const soa_asynch_actions =
soa_asynch_get_params,
soa_asynch_get_paramlist,
soa_base_media_features,
soa_base_sip_required,
soa_base_sip_support,
soa_base_sip_require,
soa_base_sip_supported,
soa_base_remote_sip_features,
soa_base_set_capability_sdp,
soa_base_set_remote_sdp,
......
......@@ -56,8 +56,8 @@ struct soa_session_actions
tagi_t *(*soa_get_paramlist)(soa_session_t const *ss,
tag_type_t, tag_value_t, ...);
char **(*soa_media_features)(soa_session_t *, int live, su_home_t *);
char const * const *(*soa_sip_required)(soa_session_t const *ss);
char const * const *(*soa_sip_support)(soa_session_t const *ss);
char const * const *(*soa_sip_require)(soa_session_t const *ss);
char const * const *(*soa_sip_supported)(soa_session_t const *ss);
int (*soa_remote_sip_features)(soa_session_t *ss,
char const * const * support,
char const * const * required);
......@@ -86,8 +86,8 @@ int soa_base_get_params(soa_session_t const *ss, tagi_t *tags);
tagi_t *soa_base_get_paramlist(soa_session_t const *ss,
tag_type_t, tag_value_t, ...);
char **soa_base_media_features(soa_session_t *, int live, su_home_t *);
char const * const * soa_base_sip_required(soa_session_t const *ss);
char const * const * soa_base_sip_support(soa_session_t const *ss);
char const * const * soa_base_sip_require(soa_session_t const *ss);
char const * const * soa_base_sip_supported(soa_session_t const *ss);
int soa_base_remote_sip_features(soa_session_t *ss,
char const * const * support,
......
......@@ -115,8 +115,8 @@ struct soa_session_actions const soa_default_actions =
soa_static_get_params,
soa_static_get_paramlist,
soa_base_media_features,
soa_base_sip_required,
soa_base_sip_support,
soa_base_sip_require,
soa_base_sip_supported,
soa_base_remote_sip_features,
soa_static_set_capability_sdp,
soa_static_set_remote_sdp,
......
......@@ -113,8 +113,8 @@ int test_api_errors(struct context *ctx)
TEST_1(!soa_media_features(NULL, 0, NULL));
TEST_1(!soa_sip_required(NULL));
TEST_1(!soa_sip_support(NULL));
TEST_1(!soa_sip_require(NULL));
TEST_1(!soa_sip_supported(NULL));
TEST_1(-1 == soa_remote_sip_features(NULL, &null, &null));
......
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