Structures which identify sections.
More...
#include <stdbool.h>
#include <freeradius-devel/server/cf_util.h>
Go to the source code of this file.
Structures which identify sections.
- Id
- 7c8c1ae778cd16c3a88080d07a96f37d197ea5d1
- Copyright
- 2024 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file section.h.
◆ section_name_t
Section name identifier.
Definition at line 44 of file section.h.
Data Fields |
char const * |
name1 |
First section name. Usually a verb like 'recv', 'send', etc... |
char const * |
name2 |
Second section name. Usually a packet type like 'access-request', 'access-accept', etc... |
◆ SECTION_NAME
Define a section name consisting of a verb and a noun.
- Parameters
-
[in] | _name1 | verb name. |
[in] | _name2 | noun name. |
Definition at line 40 of file section.h.
◆ section_name2_match()
◆ section_name_cmp()
int8_t section_name_cmp |
( |
void const * |
one, |
|
|
void const * |
two |
|
) |
| |
Compare two sections.
- Sections are sorted by name1, then name2.
- NULLs sort before non-NULLs.
- CF_IDENT_ANY sort after non-CF_IDENT_ANY.
- Any other comparisons are lexicographic.
- Parameters
-
[in] | one | First section name. |
[in] | two | Second section name. |
- Returns
- < 0 if one < two, 0 if one == two, > 0 if one > two.
Definition at line 48 of file section.c.
◆ section_name_dup()
◆ section_name_match()
◆ section_name_str()
static char const* section_name_str |
( |
char const * |
name | ) |
|
|
inlinestatic |
Return a printable string for the section name.
- Parameters
-
Definition at line 98 of file section.h.