mirror of
https://github.com/lxsang/ant-http
synced 2025-07-13 13:04:23 +02:00
alow a plugin to require other plugin
This commit is contained in:
@ -70,6 +70,12 @@ static const char* S_511 = "Network Authentication Required";
|
||||
static const char* S_UNOF = "Unofficial Status";
|
||||
|
||||
|
||||
int require_plugin(const char* name)
|
||||
{
|
||||
UNUSED(name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char* get_status_str(int stat)
|
||||
{
|
||||
switch(stat)
|
||||
|
@ -101,6 +101,10 @@ typedef struct {
|
||||
int raw_body;
|
||||
} plugin_header_t;
|
||||
|
||||
|
||||
int __attribute__((weak)) require_plugin(const char*);
|
||||
|
||||
|
||||
void set_nonblock(int socket);
|
||||
//void set_block(int socket);
|
||||
|
||||
|
Reference in New Issue
Block a user