- nhttpd: small re-sorts; TODO: fix $Revision$ replacements

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-09-05 09:31:31 +02:00
committed by Thilo Graf
parent 1a80fe4568
commit 01a685c1ce
7 changed files with 23 additions and 25 deletions

View File

@@ -60,8 +60,9 @@ public:
// virtual functions for BaseClass
virtual std::string YWeb_cgi_func(CyhookHandler *hh, std::string ycmd);
// virtual functions for HookHandler/Hook
virtual std::string getHookName(void) {return std::string("mod_NeutrinoYParser-Coolstream");}
virtual std::string getHookName(void) {return std::string("mod_NeutrinoYParser");}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_SendResponse(CyhookHandler *hh);
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config, CStringList &ConfigList);

View File

@@ -17,16 +17,12 @@ public:
}
;
// Hooks
// virtual functions for HookHandler/Hook
virtual std::string getHookName(void) {return std::string("mod_auth");}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_PrepareResponse(CyhookHandler *hh);
virtual std::string getHookName(void) {
return std::string("mod_auth");
}
virtual std::string getHookVersion(void) {
return std::string("$Revision$");
}
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config,
CStringList &ConfigList);
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config, CStringList &ConfigList);
protected:
bool CheckAuth(CyhookHandler *hh);
std::string decodeBase64(const char *b64buffer);

View File

@@ -48,11 +48,11 @@ public:
static void RemoveCategoryFromCache(std::string category);
static void DeleteCache(void);
// Hooks
// virtual functions for HookHandler/Hook
virtual std::string getHookName(void) {return std::string("mod_cache");}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_PrepareResponse(CyhookHandler *hh);
virtual THandleStatus Hook_SendResponse(CyhookHandler *hh);
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual std::string getHookName(void) {return std::string("mod_cache");}
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config, CStringList &ConfigList);
};

View File

@@ -28,11 +28,11 @@ public:
CmodSendfile(){};
~CmodSendfile(void){};
// Hooks
virtual THandleStatus Hook_PrepareResponse(CyhookHandler *hh);
// virtual THandleStatus Hook_SendResponse(CyhookHandler *hh);
// virtual functions for HookHandler/Hook
virtual std::string getHookName(void) {return std::string("mod_sendfile");}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_PrepareResponse(CyhookHandler *hh);
// virtual THandleStatus Hook_SendResponse(CyhookHandler *hh);
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config, CStringList &ConfigList);
};

View File

@@ -33,10 +33,10 @@ public:
void AddLogEntry_ELF(CyhookHandler *hh);
bool printf(const char *fmt, ...);
// Hooks
virtual THandleStatus Hook_EndConnection(CyhookHandler *hh);
// virtual functions for HookHandler/Hook
virtual std::string getHookName(void) {return std::string("mod_weblog");}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_EndConnection(CyhookHandler *hh);
virtual THandleStatus Hook_ReadConfig(CConfigFile *Config, CStringList &ConfigList);
};
#endif // __yhttpd_mod_weblog_h__

View File

@@ -113,9 +113,10 @@ public:
// virtual functions for BaseClass
virtual std::string YWeb_cgi_func(CyhookHandler *hh, std::string ycmd);
// virtual functions for HookHandler/Hook
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual std::string getHookName(void) {return "mod_yparser";}
virtual std::string getHookVersion(void) {return std::string("$Revision$");}
virtual THandleStatus Hook_SendResponse(CyhookHandler *hh);
};