mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
函数声明放置于头文件
This commit is contained in:
parent
9a5d3da69c
commit
bff1f2f8f6
@ -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 {
|
|||||||
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 @@
|
|||||||
#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;
|
||||||
|
Loading…
Reference in New Issue
Block a user