Mod test.

FossilOrigin-Name: c6655a63f94ee32c28d39e0f64f6962ad2c4f0e0941e4a2c6b7eeee17b0c8137
This commit is contained in:
7u83@mail.ru 2016-02-14 20:39:36 +00:00
parent b393486b4b
commit d2e12bb985
2 changed files with 41 additions and 0 deletions

28
src/ac/mod_cipwap.c Normal file
View File

@ -0,0 +1,28 @@
#include "module.h"
static int init()
{
return 1;
}
static struct ac_module module = {
.name="Cipwap",
.init= init,
.detect_by_discovery = 0
};
struct ac_module * mod_cipwap()
{
return &module;
}

13
src/ac/module.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef __MODULE_H
#define __MODULE_H
struct ac_module
{
const char *name;
int (*init)();
int (*detect_by_raw)(const char *msg, int len);
int (*detect_by_discovery)(const char*);
};
#endif