Commit bff1f2f8 by xiongziliang

函数声明放置于头文件

parent 9a5d3da6
...@@ -45,4 +45,7 @@ extern const string kPort; ...@@ -45,4 +45,7 @@ extern const string kPort;
} // namespace mediakit } // namespace mediakit
void installWebApi();
void unInstallWebApi();
#endif //ZLMEDIAKIT_WEBAPI_H #endif //ZLMEDIAKIT_WEBAPI_H
...@@ -34,5 +34,7 @@ namespace Hook { ...@@ -34,5 +34,7 @@ namespace Hook {
extern const string kTimeoutSec; extern const string kTimeoutSec;
}//namespace Hook }//namespace Hook
void installWebHook();
void unInstallWebHook();
#endif //ZLMEDIAKIT_WEBHOOK_H #endif //ZLMEDIAKIT_WEBHOOK_H
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include "Player/PlayerProxy.h" #include "Player/PlayerProxy.h"
#include "Http/WebSocketSession.h" #include "Http/WebSocketSession.h"
#include "WebApi.h" #include "WebApi.h"
#include "WebHook.h"
#if !defined(_WIN32) #if !defined(_WIN32)
#include "System.h" #include "System.h"
...@@ -157,12 +158,6 @@ public: ...@@ -157,12 +158,6 @@ public:
} }
}; };
extern void installWebApi();
extern void unInstallWebApi();
extern void installWebHook();
extern void unInstallWebHook();
#if !defined(_WIN32) #if !defined(_WIN32)
static void inline listen_shell_input(){ static void inline listen_shell_input(){
cout << "> 欢迎进入命令模式,你可以输入\"help\"命令获取帮助" << endl; cout << "> 欢迎进入命令模式,你可以输入\"help\"命令获取帮助" << endl;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论