26 RCSIDH(section_h,
"$Id: 7c8c1ae778cd16c3a88080d07a96f37d197ea5d1 $")
29 #include <freeradius-devel/server/cf_util.h>
40 #define SECTION_NAME(_name1, _name2) &(section_name_t){ .name1 = _name1, .name2 = _name2 }
68 return (strcmp(a->
name2, b->
name2) == 0) ? 1 : 0;
88 if (strcmp(a->
name1, b->
name1) != 0)
return -1;
100 if (
name == NULL)
return "NULL";
static int section_name2_match(section_name_t const *a, section_name_t const *b)
static int section_name_match(section_name_t const *a, section_name_t const *b)
static char const * section_name_str(char const *name)
Return a printable string for the section name.
int8_t section_name_cmp(void const *one, void const *two)
Compare two sections.
static void section_name_dup(TALLOC_CTX *ctx, section_name_t *dst, section_name_t const *src)
char const * name2
Second section name. Usually a packet type like 'access-request', 'access-accept',...
char const * name1
First section name. Usually a verb like 'recv', 'send', etc...
char * talloc_typed_strdup(TALLOC_CTX *ctx, char const *p)
Call talloc_strdup, setting the type on the new chunk correctly.