]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
added enum / name for process_foo
authorAlan T. DeKok <aland@freeradius.org>
Tue, 16 Feb 2021 20:59:34 +0000 (15:59 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 17 Feb 2021 12:45:04 +0000 (07:45 -0500)
so we can have processing modules for each protocol

src/lib/server/dl_module.c
src/lib/server/dl_module.h

index fc9bc9f0c2491a73393d442261a822d0bedb1739..579bb283ce785506e652fab1458eba1d45415ce7 100644 (file)
@@ -62,7 +62,8 @@ static _Thread_local dl_module_inst_cache_t   dl_inst_cache;
 /** Name prefixes matching the types of loadable module
  */
 static fr_table_num_sorted_t const dl_module_type_prefix[] = {
-       { L(""),                DL_MODULE_TYPE_SUBMODULE        },
+       { L(""),        DL_MODULE_TYPE_SUBMODULE        },
+       { L("process"), DL_MODULE_TYPE_PROCESS          },
        { L("proto"),   DL_MODULE_TYPE_PROTO            },
        { L("rlm"),     DL_MODULE_TYPE_MODULE           }
 };
index 526e6fdaa12590b6eb30f2cc4150d8d39f31f560..5205c89d0ec742a9ecd91ba6f526daa6a5138088 100644 (file)
@@ -56,6 +56,7 @@ extern "C" {
 typedef enum {
        DL_MODULE_TYPE_MODULE = 0,      //!< Standard loadable module.
        DL_MODULE_TYPE_PROTO,           //!< Protocol module.
+       DL_MODULE_TYPE_PROCESS,         //!< protocol processor.
        DL_MODULE_TYPE_SUBMODULE        //!< Driver (or method in the case of EAP)
 } dl_module_type_t;