mirror of
https://github.com/lxsang/ant-http
synced 2024-11-18 01:08:21 +01:00
58a7738afe
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
- New plugin interface that supports multiple instances - Fix and improve memory bugs - Refactory and cleanup lib - Improve scheduler
18 lines
375 B
C
18 lines
375 B
C
#ifndef PLUGIN_CTX_H
|
|
#define PLUGIN_CTX_H
|
|
#include "handle.h"
|
|
struct _plugin_ctx_t
|
|
{
|
|
char * name;
|
|
const char * tmpdir;
|
|
const char * basedir;
|
|
char * confdir;
|
|
int raw_body;
|
|
int status;
|
|
dictionary_t config;
|
|
void * data;
|
|
void *(*handle)(void *);
|
|
void *(*create)(struct _plugin_ctx_t *);
|
|
void (*drop)(struct _plugin_ctx_t *);
|
|
} ;
|
|
#endif |