]> git.stg.codes - stg.git/blobdiff - projects/sgconf/users.h
Implemented some user management functions.
[stg.git] / projects / sgconf / users.h
diff --git a/projects/sgconf/users.h b/projects/sgconf/users.h
new file mode 100644 (file)
index 0000000..d6c2dd8
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef __STG_SGCONF_USERS_H__
+#define __STG_SGCONF_USERS_H__
+
+#include <string>
+#include <map>
+
+namespace SGCONF
+{
+
+struct CONFIG;
+
+bool GetUsersFunction(const CONFIG & config,
+                      const std::string & /*arg*/,
+                      const std::map<std::string, std::string> & /*options*/);
+
+bool GetUserFunction(const CONFIG & config,
+                     const std::string & arg,
+                     const std::map<std::string, std::string> & /*options*/);
+
+bool DelUserFunction(const CONFIG & config,
+                     const std::string & arg,
+                     const std::map<std::string, std::string> & /*options*/);
+
+bool AddUserFunction(const CONFIG & config,
+                     const std::string & arg,
+                     const std::map<std::string, std::string> & options);
+
+bool ChgUserFunction(const CONFIG & config,
+                     const std::string & arg,
+                     const std::map<std::string, std::string> & options);
+
+}
+
+#endif