]> git.stg.codes - stg.git/blobdiff - projects/sgconf/common_sg.h
Better handling of errors from server. Refactoring.
[stg.git] / projects / sgconf / common_sg.h
index a654748a68f744ea558ef309d5d2702d21447c4e..03090a7628fb71fa47db5cea37d5e65bcb8981e1 100644 (file)
 #ifndef COMMON_SG_H
 #define COMMON_SG_H
 
 #ifndef COMMON_SG_H
 #define COMMON_SG_H
 
-#include <string>
-
 #include "stg/servconf.h"
 #include "request.h"
 
 #include "stg/servconf.h"
 #include "request.h"
 
+#include <string>
+
 void UsageConf();
 void UsageInfo();
 
 void UsageConf();
 void UsageInfo();
 
@@ -50,15 +50,19 @@ int ProcessGetUser(const std::string &server,
                    const std::string &admLogin,
                    const std::string &admPasswd,
                    const std::string &login,
                    const std::string &admLogin,
                    const std::string &admPasswd,
                    const std::string &login,
-                   void * data);
+                   REQUEST & request);
+
+int ProcessAuthBy(const std::string &server,
+                  int port,
+                  const std::string &admLogin,
+                  const std::string &admPasswd,
+                  const std::string &login);
 
 int ProcessSetUser(const std::string &server,
                    int port,
                    const std::string &admLogin,
                    const std::string &admPasswd,
                    const std::string &str,
 
 int ProcessSetUser(const std::string &server,
                    int port,
                    const std::string &admLogin,
                    const std::string &admPasswd,
                    const std::string &str,
-                   void * data,
                    bool isMessage = false);
 
 #endif
                    bool isMessage = false);
 
 #endif
-