]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add macro for module env subsections
authorNick Porter <nick@portercomputing.co.uk>
Wed, 15 Mar 2023 14:54:15 +0000 (14:54 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 4 Apr 2023 07:30:09 +0000 (08:30 +0100)
src/lib/server/module.h

index f29b6018c8db71ab3ae2f81c8254a7acaebe139e..3d00700dad54468f990f7f20076c4ec7c4d0f568 100644 (file)
@@ -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,