Commit e803a216 authored by Martti Mela's avatar Martti Mela

for all files related: 's/static inline/su_inline/g'

darcs-hash:20070423131444-1b897-6275c45cd5d9b5275c93219c8a38f11557bc5851.gz
parent bd69e555
......@@ -106,7 +106,7 @@ char * bnf_span_token_end(char const *s)
}
/** Return length of decimal-octet */
static inline int span_ip4_octet(char const *host)
su_inline int span_ip4_octet(char const *host)
{
/*
decimal-octet = DIGIT
......@@ -242,7 +242,7 @@ int scan_ip4_address(char **inout_host)
}
/** Return length of hex4 */
static inline int span_hex4(char const *host)
su_inline int span_hex4(char const *host)
{
if (!IS_HEX(host[0]))
return 0;
......@@ -256,7 +256,7 @@ static inline int span_hex4(char const *host)
}
/** Return length of valid IP6 address */
static inline
su_inline
int span_canonic_ip6_address(char const *host,
int *return_canonize,
char *hexparts[9])
......@@ -337,7 +337,7 @@ int span_canonic_ip6_address(char const *host,
*
* @retval Length of canonized IP6 address.
*/
static inline
su_inline
int canonize_ip6_address(char *host, char *hexparts[9])
{
char *dst, *hex, *ip4 = NULL;
......@@ -565,7 +565,7 @@ int scan_ip_address(char **inout_host)
}
/** Return length of a valid domain label */
static inline
su_inline
size_t span_domain_label(char const *label)
{
/* domainlabel = alphanum / alphanum *( alphanum / "-" ) alphanum */
......@@ -581,7 +581,7 @@ size_t span_domain_label(char const *label)
}
/** Scan valid domain name and count number of labels in it. */
static inline
su_inline
size_t span_domain_labels(char const *host, size_t *return_labels)
{
size_t len, n, labels;
......
......@@ -174,7 +174,7 @@ SOFIAPUBVAR unsigned char const _bnf_table[256];
/** Calculate span of a linear whitespace.
* LWS = [*WSP CRLF] 1*WSP
*/
static inline isize_t span_lws(char const *s)
su_inline isize_t span_lws(char const *s)
{
char const *e = s;
int i = 0;
......@@ -187,7 +187,7 @@ static inline isize_t span_lws(char const *s)
}
/** Calculate span of a token or linear whitespace characters. */
static inline isize_t span_token_lws(char const *s)
su_inline isize_t span_token_lws(char const *s)
{
char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & (bnf_token | bnf_lws))
......@@ -197,7 +197,7 @@ static inline isize_t span_token_lws(char const *s)
#if 1
/** Calculate span of a token characters. */
static inline isize_t span_token(char const *s)
su_inline isize_t span_token(char const *s)
{
char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & bnf_token)
......@@ -211,7 +211,7 @@ size_t bnf_span_token(char const *s);
/** Calculate span of a alphabetic characters. */
static inline isize_t span_alpha(char const *s)
su_inline isize_t span_alpha(char const *s)
{
char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & bnf_alpha)
......@@ -220,7 +220,7 @@ static inline isize_t span_alpha(char const *s)
}
/** Calculate span of a digits. */
static inline isize_t span_digit(char const *s)
su_inline isize_t span_digit(char const *s)
{
char const *e = s;
while (*e >= '0' && *e <= '9')
......@@ -229,7 +229,7 @@ static inline isize_t span_digit(char const *s)
}
/** Calculate span of a hex. */
static inline isize_t span_hexdigit(char const *s)
su_inline isize_t span_hexdigit(char const *s)
{
char const *e = s;
while (IS_HEX(*e))
......@@ -238,7 +238,7 @@ static inline isize_t span_hexdigit(char const *s)
}
/** Calculate span of characters belonging to an RTSP token */
static inline isize_t span_alpha_digit_safe(char const *s)
su_inline isize_t span_alpha_digit_safe(char const *s)
{
char const *e = s;
while (_bnf_table[(unsigned char)(*e)] & (bnf_alpha | bnf_safe))
......@@ -247,7 +247,7 @@ static inline isize_t span_alpha_digit_safe(char const *s)
}
/** Calculate span of a characters valid in parameters. */
static inline isize_t span_param(char const *s)
su_inline isize_t span_param(char const *s)
{
char const *e = s;
while (IS_PARAM(*e))
......@@ -256,7 +256,7 @@ static inline isize_t span_param(char const *s)
}
/** Calculate span of a SIP word. */
static inline isize_t span_word(char const *s)
su_inline isize_t span_word(char const *s)
{
char const *e = s;
while (*e && (IS_TOKEN(*e) || strchr(SIP_WORD, *e)))
......@@ -265,7 +265,7 @@ static inline isize_t span_word(char const *s)
}
/** Calculate span of a unreserved characters. */
static inline isize_t span_unreserved(char const *s)
su_inline isize_t span_unreserved(char const *s)
{
char const *e = s;
while (IS_UNRESERVED(*e))
......@@ -274,7 +274,7 @@ static inline isize_t span_unreserved(char const *s)
}
/** Calculate span of a double quoted string (with escaped chars inside) */
static inline isize_t span_quoted(char const *s)
su_inline isize_t span_quoted(char const *s)
{
char const *b = s;
......
......@@ -1351,7 +1351,7 @@ HTTP_HEADER_CLASS_G(server, "Server", single);
* @endcode
*/
static inline
su_inline
void http_te_update(http_te_t *te)
{
te->te_q = msg_header_find_param(te->te_common, "q");
......
......@@ -97,7 +97,7 @@ HTTP_HEADER_CLASS_LIST(proxy_connection, "Proxy-Connection", list);
*
* @param sc pointer to a @c http_cookie_t object
*/
static inline
su_inline
void http_cookie_update(http_cookie_t *c)
{
size_t i;
......@@ -299,7 +299,7 @@ HTTP_HEADER_CLASS(cookie, "Cookie", c_params, append, cookie);
*
* @param sc pointer to a @c http_set_cookie_t object
*/
static inline
su_inline
void http_set_cookie_update(http_set_cookie_t *sc)
{
size_t i;
......
......@@ -103,9 +103,9 @@ SOFIAPUBVAR tag_typedef_t httptag_http;
SOFIAPUBVAR tag_typedef_t httptag_http_ref;
#if SU_HAVE_INLINE
static inline
su_inline
tag_value_t httptag_http_v(http_t const *v) { return (tag_value_t)v; }
static inline
su_inline
tag_value_t httptag_http_vr(http_t const **vp) { return (tag_value_t)vp; }
#else
#define httptag_http_v(v) (tag_value_t)(v)
......@@ -151,10 +151,10 @@ SOFIAPUBVAR tag_typedef_t httptag_header;
SOFIAPUBVAR tag_typedef_t httptag_header_ref;
#if SU_HAVE_INLINE
static inline tag_value_t
su_inline tag_value_t
httptag_header_v(http_header_t const *v)
{ return (tag_value_t)v; }
static inline tag_value_t
su_inline tag_value_t
httptag_header_vr(http_header_t const **vp)
{ return (tag_value_t)vp; }
#else
......@@ -221,10 +221,10 @@ SOFIAPUBVAR tag_typedef_t httptag_#xxxxxx#_ref;
SOFIAPUBVAR tag_typedef_t httptag_#xxxxxx#_str_ref;
#if SU_HAVE_INLINE
static inline tag_value_t
su_inline tag_value_t
httptag_#xxxxxx#_v(http_#xxxxxx#_t const *v)
{ return (tag_value_t)v; }
static inline tag_value_t
su_inline tag_value_t
httptag_#xxxxxx#_vr(http_#xxxxxx#_t const **vp)
{ return (tag_value_t)vp; }
#else
......
......@@ -45,7 +45,7 @@
char *strcasestr(char const *haystack, char const *needle);
#endif
static inline int has_token(char const *qstring, char const *token);
su_inline int has_token(char const *qstring, char const *token);
/**
* Parse authentication parameters.
......@@ -163,7 +163,7 @@ int auth_struct_copy(void *dst, void const *src, isize_t s_size)
return 0;
}
static inline int has_token(char const *qstring, char const *token)
su_inline int has_token(char const *qstring, char const *token)
{
size_t n = strlen(token);
char const *q;
......
......@@ -831,7 +831,7 @@ void auth_info_digest(auth_mod_t *am,
/* ====================================================================== */
/* Password database */
static inline void
su_inline void
auth_htable_append_local(auth_htable_t *pr, auth_passwd_t *apw);
/** Get an passwd entry for user. */
......@@ -1132,7 +1132,7 @@ int auth_readdb_internal(auth_mod_t *am, int always)
}
/** Append to hash, remove existing user */
static inline void
su_inline void
auth_htable_append_local(auth_htable_t *aht, auth_passwd_t *apw)
{
auth_passwd_t **slot;
......
......@@ -43,7 +43,7 @@
#include "iptsec_debug.h"
static inline int has_token(char const *qstring, char const *token);
su_inline int has_token(char const *qstring, char const *token);
/**Get ntlm-challenge parameters.
......
......@@ -254,10 +254,10 @@ SOFIAPUBVAR tag_typedef_t authtag_module;
SOFIAPUBVAR tag_typedef_t authtag_module_ref;
#if SU_HAVE_INLINE
static inline tag_value_t authtag_module_v(auth_mod_t *v) {
su_inline tag_value_t authtag_module_v(auth_mod_t *v) {
return (tag_value_t)v;
}
static inline tag_value_t authtag_module_vr(auth_mod_t **vp) {
su_inline tag_value_t authtag_module_vr(auth_mod_t **vp) {
return (tag_value_t)vp;
}
#else
......
......@@ -92,7 +92,7 @@ static char const months[12 * 4] =
* @return The function month_d() returns 0..11 if given first three letters
* of month name, or -1 if no month name matches.
*/
static inline
su_inline
int month_d(char const *s)
{
unsigned const uc = ('a' - 'A') << 16 | ('a' - 'A') << 8 | ('a' - 'A');
......@@ -125,7 +125,7 @@ int month_d(char const *s)
}
/* Parse SP 2DIGIT ":" 2DIGIT ":" 2DIGIT SP */
static inline
su_inline
int time_d(char const **ss,
unsigned long *hour, unsigned long *min, unsigned long *sec)
{
......
......@@ -51,7 +51,7 @@
#include "sofia-sip/msg_header.h"
/** Calculate size of a parameter vector */
static inline
su_inline
size_t msg_params_copy_xtra(msg_param_t const pp[], size_t offset)
{
size_t n = msg_params_count(pp);
......@@ -63,7 +63,7 @@ size_t msg_params_copy_xtra(msg_param_t const pp[], size_t offset)
}
/** Copy a vector of parameters */
static inline
su_inline
char *msg_params_copy(char *b, size_t size,
msg_param_t **dst,
msg_param_t const src[])
......
......@@ -119,29 +119,29 @@ struct msg_buffer_s {
/* ---------------------------------------------------------------------- */
/* Header-kind predicate functions. */
static inline int msg_is_single(msg_header_t const *h)
su_inline int msg_is_single(msg_header_t const *h)
{
return h->sh_class->hc_kind == msg_kind_single;
}
static inline int msg_is_prepend(msg_header_t const *h)
su_inline int msg_is_prepend(msg_header_t const *h)
{
return h->sh_class->hc_kind == msg_kind_prepend;
}
static inline int msg_is_append(msg_header_t const *h)
su_inline int msg_is_append(msg_header_t const *h)
{
return
h->sh_class->hc_kind == msg_kind_append ||
h->sh_class->hc_kind == msg_kind_apndlist;
}
static inline int msg_is_list(msg_header_t const *h)
su_inline int msg_is_list(msg_header_t const *h)
{
return h->sh_class->hc_kind == msg_kind_list;
}
static inline int msg_is_special(msg_header_t const *h)
su_inline int msg_is_special(msg_header_t const *h)
{
return h->sh_class->hc_hash < 0;
}
......
......@@ -76,7 +76,7 @@ static void msg_insert_chain(msg_t *msg, msg_pub_t *pub, int prepend,
static void msg_insert_here_in_chain(msg_t *msg,
msg_header_t **prev,
msg_header_t *h);
static inline msg_header_t *msg_chain_remove(msg_t *msg, msg_header_t *h);
su_inline msg_header_t *msg_chain_remove(msg_t *msg, msg_header_t *h);
#ifndef NDEBUG
static int msg_chain_loop(msg_header_t const *h);
......@@ -122,12 +122,12 @@ void msg_set_streaming(msg_t *msg, enum msg_streaming_status what)
/** Test if header is not in the chain */
#define msg_header_is_removed(h) ((h)->sh_prev == NULL)
static inline int msg_is_request(msg_header_t const *h)
su_inline int msg_is_request(msg_header_t const *h)
{
return h->sh_class->hc_hash == msg_request_hash;
}
static inline int msg_is_status(msg_header_t const *h)
su_inline int msg_is_status(msg_header_t const *h)
{
return h->sh_class->hc_hash == msg_status_hash;
}
......@@ -253,7 +253,7 @@ usize_t msg_buf_size(msg_t const *msg)
return 0;
}
static inline
su_inline
void msg_buf_used(msg_t *msg, usize_t used)
{
msg->m_size += used;
......@@ -812,10 +812,10 @@ int msg_unref_external(msg_t *msg, msg_buffer_t *b)
/* ====================================================================== */
/* Parsing messages */
static inline int extract_incomplete_chunks(msg_t *, int eos);
su_inline int extract_incomplete_chunks(msg_t *, int eos);
static issize_t extract_first(msg_t *, msg_pub_t *,
char b[], isize_t bsiz, int eos);
static inline issize_t extract_next(msg_t *, msg_pub_t *, char *, isize_t bsiz,
su_inline issize_t extract_next(msg_t *, msg_pub_t *, char *, isize_t bsiz,
int eos, int copy);
static issize_t extract_header(msg_t *, msg_pub_t*,
char b[], isize_t bsiz, int eos, int copy);
......@@ -823,14 +823,14 @@ static msg_header_t *header_parse(msg_t *, msg_pub_t *, msg_href_t const *,
char s[], isize_t slen, int copy_buffer);
static msg_header_t *error_header_parse(msg_t *msg, msg_pub_t *mo,
msg_href_t const *hr);
static inline issize_t
su_inline issize_t
extract_trailers(msg_t *msg, msg_pub_t *mo,
char *b, isize_t bsiz, int eos, int copy);
/** Calculate length of line ending (0, 1 or 2). @internal */
#define CRLF_TEST(b) ((b)[0] == '\r' ? ((b)[1] == '\n') + 1 : (b)[0] =='\n')
static inline void
su_inline void
append_parsed(msg_t *msg, msg_pub_t *mo, msg_href_t const *hr, msg_header_t *h,
int always_into_chain);
......@@ -991,7 +991,7 @@ issize_t extract_first(msg_t *msg, msg_pub_t *mo, char b[], isize_t bsiz, int eo
}
/* Extract header or message body */
static inline issize_t
su_inline issize_t
extract_next(msg_t *msg, msg_pub_t *mo, char *b, isize_t bsiz,
int eos, int copy)
{
......@@ -1302,7 +1302,7 @@ issize_t msg_extract_separator(msg_t *msg, msg_pub_t *mo,
return l;
}
static inline msg_header_t **msg_chain_tail(msg_t const *msg);
su_inline msg_header_t **msg_chain_tail(msg_t const *msg);
/** Extract a message body of @a body_len bytes.
*/
......@@ -1459,7 +1459,7 @@ issize_t msg_extract_payload(msg_t *msg, msg_pub_t *mo,
/** Extract incomplete chunks.
*/
static inline
su_inline
int extract_incomplete_chunks(msg_t *msg, int eos)
{
msg_payload_t *chunk;
......@@ -1495,7 +1495,7 @@ int extract_incomplete_chunks(msg_t *msg, int eos)
}
/* Extract trailers */
static inline issize_t
su_inline issize_t
extract_trailers(msg_t *msg, msg_pub_t *mo,
char *b, isize_t bsiz, int eos, int copy)
{
......@@ -1511,7 +1511,7 @@ extract_trailers(msg_t *msg, msg_pub_t *mo,
/* Preparing (printing/encoding) a message structure for sending */
/* Internal prototypes */
static inline size_t
su_inline size_t
msg_header_name_e(char b[], size_t bsiz, msg_header_t const *h, int flags);
static size_t msg_header_prepare(msg_mclass_t const *, int flags,
msg_header_t *h, msg_header_t **return_next,
......@@ -1731,7 +1731,7 @@ issize_t msg_header_e(char b[], isize_t bsiz, msg_header_t const *h, int flags)
}
/** Encode header name */
static inline
su_inline
size_t
msg_header_name_e(char b[], size_t bsiz, msg_header_t const *h, int flags)
{
......@@ -1854,7 +1854,7 @@ char *msg_as_string(su_home_t *home, msg_t *msg, msg_pub_t *pub, int flags,
/* ====================================================================== */
/* Handling header chain */
static inline void serialize_first(msg_t *msg, msg_header_t *h);
su_inline void serialize_first(msg_t *msg, msg_header_t *h);
static msg_header_t **serialize_one(msg_t *msg, msg_header_t *h,
msg_header_t **prev);
......@@ -1864,13 +1864,13 @@ msg_header_t **msg_chain_head(msg_t const *msg)
return msg ? (msg_header_t **)&msg->m_chain : NULL;
}
static inline msg_header_t **_msg_chain_head(msg_t const *msg)
su_inline msg_header_t **_msg_chain_head(msg_t const *msg)
{
return msg ? (msg_header_t **)&msg->m_chain : NULL;
}
/** Return tail of the fragment chain */
static inline msg_header_t **msg_chain_tail(msg_t const *msg)
su_inline msg_header_t **msg_chain_tail(msg_t const *msg)
{
return msg ? msg->m_tail : NULL;
}
......@@ -1977,7 +1977,7 @@ int msg_serialize(msg_t *msg, msg_pub_t *pub)
return 0;
}
static inline
su_inline
void serialize_first(msg_t *msg, msg_header_t *h)
{
if (msg_header_is_removed(h)) {
......@@ -2202,7 +2202,7 @@ void msg_insert_here_in_chain(msg_t *msg,
*
* @return The pointer to the header just removed.
*/
static inline
su_inline
msg_header_t *msg_chain_remove(msg_t *msg, msg_header_t *h)
{
if (h) {
......@@ -2477,7 +2477,7 @@ msg_hclass_offset(msg_mclass_t const *mc, msg_pub_t const *mo, msg_hclass_t *hc)
}
/** Append a parsed header object into the message structure */
static inline void
su_inline void
append_parsed(msg_t *msg, msg_pub_t *mo, msg_href_t const *hr, msg_header_t *h,
int always_into_chain)
{
......
......@@ -197,13 +197,13 @@ SOFIAPUBFUN issize_t msg_headers_prepare(msg_t *,
#ifdef SU_HAVE_INLINE
/** Clear encoded data from header structure. */
static inline void msg_fragment_clear(msg_common_t *h)
su_inline void msg_fragment_clear(msg_common_t *h)
{
h->h_data = NULL, h->h_len = 0;
}
/** Pointer to header parameters. */
static inline
su_inline
msg_param_t **msg_header_params(msg_common_t const *h)
{
if (h && h->h_class->hc_params) {
......
......@@ -49,7 +49,7 @@ SOFIA_BEGIN_DECLS
#define MC_HASH(s, n) (msg_header_name_hash(s, NULL) % (unsigned)(n))
/** Hash header name */
static inline
su_inline
unsigned short msg_header_name_hash(char const *s, isize_t *llen)
{
unsigned short hash = 0;
......
......@@ -154,7 +154,7 @@ union msg_test_u
issize_t msg_test_extract_body(msg_t *, msg_pub_t *,
char b[], isize_t bsiz, int eos);
static inline
su_inline
msg_test_t *msg_test_public(msg_t *msg)
{
return (msg_test_t *)msg_public(msg, MSG_TEST_PROTOCOL_TAG);
......
......@@ -103,10 +103,10 @@ extern tag_typedef_t tsttag_header;
extern tag_typedef_t tsttag_header_ref;
#if HAVE_INLINE
static inline tag_value_t
su_inline tag_value_t
tsttag_header_v(msg_header_t const *v)
{ return (tag_value_t)v; }
static inline tag_value_t
su_inline tag_value_t
tsttag_header_vr(msg_header_t const **vp)
{ return (tag_value_t)vp; }
#else
......@@ -132,9 +132,9 @@ extern tag_typedef_t tsttag_header_str;
extern tag_typedef_t tsttag_header_str_ref;
#if HAVE_INLINE
static inline
su_inline
tag_value_t tsttag_tst_v(msg_test_t const *v) { return (tag_value_t)v; }
static inline
su_inline
tag_value_t tsttag_tst_vr(msg_test_t const **vp) { return (tag_value_t)vp; }
#else
#define tsttag_tst_v(v) (tag_value_t)(v)
......
......@@ -271,7 +271,7 @@ static int nea_view_queue(nea_server_t *nes,
nea_event_queue_t *evq);
/** Assign an event view to subscriber. */
static inline
su_inline
void nea_sub_assign_view(nea_sub_t *s, nea_event_view_t *evv)
{
if (s->s_view != evv)
......@@ -281,7 +281,7 @@ void nea_sub_assign_view(nea_sub_t *s, nea_event_view_t *evv)
s->s_throttle = evv->evv_throttle;
}
static inline
su_inline
void nea_subnode_init(nea_subnode_t *sn, nea_sub_t *s, sip_time_t now)
{
sn->sn_state = s->s_state;
......
This diff is collapsed.
......@@ -204,9 +204,9 @@ static char const __func__[] = "nth";
static server_t *server_create(url_t const *url,
tag_type_t tag, tag_value_t value, ...);
void server_destroy(server_t *srv);
static inline int server_timer_init(server_t *srv);
su_inline int server_timer_init(server_t *srv);
static void server_timer(su_root_magic_t *rm, su_timer_t *timer, server_t *srv);
static inline uint32_t server_now(server_t const *srv);
su_inline uint32_t server_now(server_t const *srv);
static void server_request(server_t *srv, tport_t *tport, msg_t *msg,
void *arg, su_time_t now);
static nth_site_t **site_get_host(nth_site_t **, char const *host, char const *port);
......@@ -776,7 +776,7 @@ void server_destroy(server_t *srv)
}
/** Initialize server timer. */
static inline
su_inline
int server_timer_init(server_t *srv)
{
if (0) {
......@@ -804,7 +804,7 @@ void server_timer(su_root_magic_t *rm, su_timer_t *timer, server_t *srv)
}
/** Get current timestamp in milliseconds */
static inline
su_inline
uint32_t server_now(server_t const *srv)
{
if (srv->srv_now)
......
......@@ -415,7 +415,7 @@ int nua_dialog_remove(nua_owner_t *own,
nua_dialog_state_t *ds,
nua_dialog_usage_t *usage);
static inline int nua_dialog_is_reporting(nua_dialog_state_t const *ds)
su_inline int nua_dialog_is_reporting(nua_dialog_state_t const *ds)
{
return ds && ds->ds_reporting;
}
......@@ -459,20 +459,20 @@ int nua_dialog_usage_shutdown(nua_owner_t *owner,
nua_dialog_state_t *ds,
nua_dialog_usage_t *du);
static inline
su_inline
int nua_dialog_is_established(nua_dialog_state_t const *ds)
{
return ds->ds_remote_tag != NULL;
}
#if 0
static inline
su_inline
void *nua_dialog_usage_private(nua_dialog_usage_t const *du)
{
return du ? (void *)(du + 1) : NULL;
}
static inline
su_inline
nua_dialog_usage_t *nua_dialog_usage_public(void const *p)
{
return p ? (nua_dialog_usage_t *)p - 1 : NULL;
......@@ -494,7 +494,7 @@ int nua_client_tcreate(nua_owner_t *nh,
nua_client_methods_t const *methods,
tag_type_t tag, tag_value_t value, ...);
static inline
su_inline
void *nua_private_client_request(nua_client_request_t const *cr)
{
return (void *)(cr + 1);
......@@ -504,7 +504,7 @@ void nua_client_request_destroy(nua_client_request_t *);
int nua_client_request_queue(nua_client_request_t *cr);
static inline int nua_client_is_queued(nua_client_request_t const *cr)
su_inline int nua_client_is_queued(nua_client_request_t const *cr)
{
return cr && cr->cr_prev;
}
......@@ -513,18 +513,18 @@ nua_client_request_t *nua_client_request_remove(nua_client_request_t *cr);
int nua_client_bind(nua_client_request_t *cr, nua_dialog_usage_t *du);
static inline int nua_client_is_bound(nua_client_request_t const *cr)
su_inline int nua_client_is_bound(nua_client_request_t const *cr)
{
return cr && cr->cr_usage && cr->cr_usage->du_cr == cr;
}
static inline int nua_client_is_reporting(nua_client_request_t const *cr)
su_inline int nua_client_is_reporting(nua_client_request_t const *cr)
{
return cr && cr->cr_reporting;
}
/** Mark client request as a terminating one */
static inline void nua_client_terminating(nua_client_request_t *cr)
su_inline void nua_client_terminating(nua_client_request_t *cr)
{
cr->cr_terminating = 1;
}
......@@ -613,13 +613,13 @@ extern nua_server_methods_t const
nua_publish_server_methods; /**< PUBLISH */
/** Return true if we have not sent final response to request */
static inline
su_inline
int nua_server_request_is_pending(nua_server_request_t const *sr)
{
return sr && sr->sr_response.msg;
}
static inline
su_inline
int nua_server_request_status(nua_server_request_t const *sr)
{
return sr ? nta_incoming_status(sr->sr_irq) : 500;
......
......@@ -4077,7 +4077,7 @@ session_timer_set(nua_session_usage_t *ss)
}
}
static inline int
su_inline int
session_timer_has_been_set(struct session_timer const *t)
{
return t->timer_set;
......
......@@ -937,7 +937,7 @@ int nh_authorize(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...)
return retval;