]> git.stg.codes - stg.git/blobdiff - projects/sgconf/api_action.h
Added user-related params.
[stg.git] / projects / sgconf / api_action.h
index e10840cfabc63931f1bc06f6ba8d20cea914ec86..e5f95b2c98402d25e75b68d99943b02a63da1ce3 100644 (file)
@@ -108,6 +108,14 @@ ACTION * MakeAPIAction(COMMANDS & commands,
 return new API_ACTION(commands, paramDescription, true, params, funPtr);
 }
 
+inline
+ACTION * MakeAPIAction(COMMANDS & commands,
+                       const std::vector<API_ACTION::PARAM> & params,
+                       API_FUNCTION funPtr)
+{
+return new API_ACTION(commands, "", false, params, funPtr);
+}
+
 inline
 ACTION * MakeAPIAction(COMMANDS & commands,
                        const std::string & paramDescription,