Browse Source

- flags parameter added to cmd_export_t
- REQUEST_ROUTE defined

Jan Janak 22 years ago
parent
commit
f9add4f7f1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      sr_module.h

+ 4 - 0
sr_module.h

@@ -31,6 +31,7 @@
  * --------
  *  2003-03-10  changed module exports interface: added struct cmd_export
  *               and param_export (andrei)
+ *  2003-03-16  Added flags field to cmd_export_ (janakj)
  */
 
 
@@ -55,12 +56,15 @@ typedef enum {
 } modparam_t;       /* Allowed types of parameters */
 
 
+#define REQUEST_ROUTE 1         /* Function can be used in request route blocks */
+
 struct cmd_export_ {
 	char* name;             /* null terminated command name */
 	cmd_function function;  /* pointer to the corresponding function */
 	int param_no;           /* number of parameters used by the function */
 	fixup_function fixup;   /* pointer to the function called to "fix" the
 							   parameters */
+	int flags;              /* Function flags */
 };