From: Nick Porter Date: Wed, 15 Mar 2023 14:54:15 +0000 (+0000) Subject: Add macro for module env subsections X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd460b78ba3fe3b3b0456c21da3b1b44446e2f37;p=thirdparty%2Ffreeradius-server.git Add macro for module env subsections --- diff --git a/src/lib/server/module.h b/src/lib/server/module.h index f29b6018c8..3d00700dad 100644 --- a/src/lib/server/module.h +++ b/src/lib/server/module.h @@ -376,6 +376,12 @@ _Generic((((_s *)NULL)->_f), \ .type_name = FR_MODULE_ENV_DST_TYPE_NAME(_struct, _field), \ .tmpl_offset = offsetof(_struct, _tmpl_field) } +#define FR_MODULE_ENV_SUBSECTION(_name, _ident2, _subcs ) \ + .name = _name, \ + .type = FR_TYPE_SUBSECTION, \ + .section = { .ident2 = _ident2, \ + .subcs = _subcs } + /** A list of modules * * This allows modules to be instantiated and freed in phases,