25 #include "asterisk/res_pjsip.h"
26 #include "asterisk/res_pjsip_session.h"
27 #include "include/res_pjsip_private.h"
41 ast_assert(supplement != NULL);
51 AST_RWLIST_INSERT_BEFORE_CURRENT(supplement, next);
56 AST_RWLIST_TRAVERSE_SAFE_END;
69 if (supplement == iter) {
70 AST_RWLIST_REMOVE_CURRENT(next);
74 AST_RWLIST_TRAVERSE_SAFE_END;
111 void ast_sip_session_remove_supplements(
struct ast_sip_session *session)
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
struct ast_sip_session::@269 supplements
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
static int copy(char *infile, char *outfile)
Utility function to copy a file.
A structure describing a SIP session.
enum ast_sip_session_response_priority response_priority
#define AST_RWLIST_HEAD_STATIC(name, type)
Defines a structure to be used to hold a read/write list of specified type, statically initialized...
#define SCOPED_LOCK(varname, lock, lockfunc, unlockfunc)
Scoped Locks.
A set of macros to manage forward-linked lists.
#define AST_LIST_REMOVE_HEAD(head, field)
Removes and returns the head entry from a list.
struct ast_module * module
#define AST_LIST_INSERT_TAIL(head, elm, field)
Appends a list entry to the tail of a list.
enum ast_sip_supplement_priority priority
#define ast_module_ref(mod)
Hold a reference to the module.
#define ast_calloc(num, len)
A wrapper for calloc()
#define ast_module_unref(mod)
Release a reference to the module.
A supplement to SIP message processing.
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Asterisk module definitions.