1#if defined(HAVE_CONFIG_H)
10#define defineParam(_enum, _name, _type, _headertype, _RFC_ref_ignored) \
12_enum##_Param::getTypeNum() const {return ParameterTypes::_enum;} \
13_enum##_Param::_enum##_Param() \
15 _headertype::ParameterFactories[ParameterTypes::_enum] = Type::decode; \
16 ParameterTypes::ParameterNames[ParameterTypes::_enum] = _name; \
18_enum##_Param resip::p_##_enum
20#define defineParam2(_enum, _name, _type, _headertype, _headertype2, _RFC_ref_ignored) \
22_enum##_Param::getTypeNum() const {return ParameterTypes::_enum;} \
23_enum##_Param::_enum##_Param() \
25 _headertype::ParameterFactories[ParameterTypes::_enum] = Type::decode; \
26 _headertype2::ParameterFactories[ParameterTypes::_enum] = Type::decode; \
27 ParameterTypes::ParameterNames[ParameterTypes::_enum] = _name; \
29_enum##_Param resip::p_##_enum
32#define defineParam3(_enum, _name, _type, _headertype, _headertype2, _headertype3, _RFC_ref_ignored) \
34_enum##_Param::getTypeNum() const {return ParameterTypes::_enum;} \
35_enum##_Param::_enum##_Param() \
37 _headertype::ParameterFactories[ParameterTypes::_enum] = Type::decode; \
38 _headertype2::ParameterFactories[ParameterTypes::_enum] = Type::decode; \
39 _headertype3::ParameterFactories[ParameterTypes::_enum] = Type::decode; \
40 ParameterTypes::ParameterNames[ParameterTypes::_enum] = _name; \
42_enum##_Param resip::p_##_enum
#define defineParam2(_enum, _name, _type, _headertype, _headertype2, _RFC_ref_ignored)
#define defineParam3(_enum, _name, _type, _headertype, _headertype2, _headertype3, _RFC_ref_ignored)
#define defineParam(_enum, _name, _type, _headertype, _RFC_ref_ignored)
Represents the "credentials" and "challenge" elements in the SIP grammar.
Represents the "via-branch" parameter of the RFC 3261 grammar.
Represents the "callid" element in the SIP grammar.
Generically represents miscellaneous parameter data.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Represents various parameters that are indicated to be in effect merely by being present,...
Represents the header field value for an Expires-type header.
Represents the "absoluteURI" element in the RFC 3261 grammar.
Represents an Identity header from RFC8824.
Represents the "media-type" element in the RFC 3261 grammar.
Represents the "name-addr" and the "addr-spec" elements in the RFC 3261 grammar.
static const struct params * in_word_set(const char *str, size_t len)
Parameter *(* Factory)(ParameterTypes::Type, ParseBuffer &, const std::bitset< 256 > &terminators, PoolBase *pool)
static Type getType(const char *start, size_t length)
does a convert to enum from a pointer into the HFV raw buffer
static Factory ParameterFactories[MAX_PARAMETER]
static array of Factorys indexed by the 2nd element in defineParam(...)
static Data ParameterNames[MAX_PARAMETER]
static array of ParameterNames indexed by the 2nd element in defineParam(...)
Represents the "q" parameter value of the RFC 3261 grammar.
Generically represents miscellaneous parameter data that is encoded using double quotes.
Represents the "via-received" element in the RFC 3261 grammar.
Represents the "response-port" element of the SIP grammar (as extended in RFC 3581).
Generically represents a token whose value can be wrapped and encoded using double quotes.
Represents the "token" element in the RFC 3261 grammar.
Generically represents unsigned 32-bit integer values conveyed by SIP parameters.
Represents a URI enclosed in angle brackets, used in Identity headers for RFC8224.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
Represents the "via-parm" element in the RFC 3261 grammar.
This file is used to handle compatibility fixes/tweaks so reSIProcate can function on multiple platfo...
dcm! – add UnusedChecking(_enum) below;
ParameterTypes::Type type