25RCSID(
"$Id: 3dc09eb3920cd55501f63eec6c53cfae9a99e061 $")
27#include <freeradius-devel/server/section.h>
28#include <freeradius-devel/server/cf_util.h>
30#define IDENT_ANY_CMP(_a, _b) \
31 (((_a) == CF_IDENT_ANY) < ((_b) == CF_IDENT_ANY)) - (((_a) == CF_IDENT_ANY) > ((_b) == CF_IDENT_ANY))
33#define NULL_CMP(_a, _b) \
34 (((_a) == NULL) < ((_b) == NULL)) - (((_a) == NULL) > ((_b) == NULL))
64 if (ret == 0)
return 0;
76 if (ret != 0)
return ret;
79 if (ret != 0)
return CMP(ret, 0);
89 if (ret != 0)
return ret;
#define CMP(_a, _b)
Same as CMP_PREFER_SMALLER use when you don't really care about ordering, you just want an ordering.
#define IDENT_ANY_CMP(_a, _b)
int8_t section_name_cmp(void const *one, void const *two)
Compare two sections.
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...