aqhome: more work on http server.
This commit is contained in:
@@ -19,27 +19,34 @@
|
||||
#include <gwenhywfar/url.h>
|
||||
|
||||
|
||||
int AQH_HttpService_LoadConfig(AQH_SERVICE *sv);
|
||||
int AQH_HttpService_SaveConfig(const AQH_SERVICE *sv);
|
||||
|
||||
AQH_MODULE *AQH_HttpService_GetModule(AQH_SERVICE *sv, const char *modName);
|
||||
AQH_USER *AQH_HttpService_GetUser(AQH_SERVICE *sv, const char *alias);
|
||||
AQH_SESSION *AQH_HttpService_GetSession(AQH_SERVICE *sv, const char *sessionUid);
|
||||
#define AQH_HTTP_SERVICE_ADMINUSER "admin"
|
||||
|
||||
|
||||
AQH_MODULE *AQH_HttpService_LoadModule(const AQH_SERVICE *sv, const char *modName);
|
||||
int AQH_HttpService_SaveModule(const AQH_SERVICE *sv, const AQH_MODULE *m);
|
||||
int AQH_HttpService_AddModule(AQH_SERVICE *sv, AQH_MODULE *m);
|
||||
|
||||
AQH_USER *AQH_HttpService_LoadUser(const AQH_SERVICE *sv, const char *userAlias);
|
||||
int AQH_HttpService_SaveUser(const AQH_SERVICE *sv, const AQH_USER *user);
|
||||
int AQH_HttpService_AddUser(AQH_SERVICE *sv, AQH_USER *user);
|
||||
int AQH_HttpService_DelUser(AQH_SERVICE *sv, AQH_USER *user);
|
||||
AQHOME_API int AQH_HttpService_LoadConfig(AQH_SERVICE *sv);
|
||||
AQHOME_API int AQH_HttpService_SaveConfig(const AQH_SERVICE *sv);
|
||||
|
||||
AQH_SESSION *AQH_HttpService_LoadSession(const AQH_SERVICE *sv, const char *sessionUid);
|
||||
int AQH_HttpService_SaveSession(const AQH_SERVICE *sv, const AQH_SESSION *session);
|
||||
int AQH_HttpService_AddSession(AQH_SERVICE *sv, AQH_SESSION *session);
|
||||
int AQH_HttpService_DelSession(AQH_SERVICE *sv, AQH_SESSION *session);
|
||||
AQHOME_API AQH_MODULE *AQH_HttpService_GetModule(AQH_SERVICE *sv, const char *modName);
|
||||
AQHOME_API AQH_USER *AQH_HttpService_GetUser(AQH_SERVICE *sv, const char *alias);
|
||||
AQHOME_API int AQH_HttpService_WriteUser(const AQH_SERVICE *sv, const AQH_USER *user);
|
||||
|
||||
AQHOME_API AQH_SESSION *AQH_HttpService_GetSession(AQH_SERVICE *sv, const char *sessionUid);
|
||||
|
||||
|
||||
AQHOME_API AQH_MODULE *AQH_HttpService_LoadModule(const AQH_SERVICE *sv, const char *modName);
|
||||
AQHOME_API int AQH_HttpService_SaveModule(const AQH_SERVICE *sv, const AQH_MODULE *m);
|
||||
AQHOME_API int AQH_HttpService_AddModule(AQH_SERVICE *sv, AQH_MODULE *m);
|
||||
|
||||
AQHOME_API AQH_USER *AQH_HttpService_LoadUser(const AQH_SERVICE *sv, const char *userAlias);
|
||||
AQHOME_API int AQH_HttpService_SaveUser(const AQH_SERVICE *sv, const AQH_USER *user);
|
||||
AQHOME_API int AQH_HttpService_AddUser(AQH_SERVICE *sv, AQH_USER *user);
|
||||
AQHOME_API int AQH_HttpService_DelUser(AQH_SERVICE *sv, AQH_USER *user);
|
||||
|
||||
AQHOME_API AQH_SESSION *AQH_HttpService_LoadSession(const AQH_SERVICE *sv, const char *sessionUid);
|
||||
AQHOME_API int AQH_HttpService_SaveSession(const AQH_SERVICE *sv, const AQH_SESSION *session);
|
||||
AQHOME_API int AQH_HttpService_AddSession(AQH_SERVICE *sv, AQH_SESSION *session);
|
||||
AQHOME_API int AQH_HttpService_DelSession(AQH_SERVICE *sv, AQH_SESSION *session);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user