函数声明放置于头文件

This commit is contained in:
xiongziliang 2019-06-24 14:58:56 +08:00
parent 9a5d3da69c
commit bff1f2f8f6
3 changed files with 6 additions and 6 deletions

View File

@ -45,4 +45,7 @@ extern const string kPort;
} // namespace mediakit } // namespace mediakit
void installWebApi();
void unInstallWebApi();
#endif //ZLMEDIAKIT_WEBAPI_H #endif //ZLMEDIAKIT_WEBAPI_H

View File

@ -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

View File

@ -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:
} }
}; };
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;