add daemon plugin

This commit is contained in:
lxsang
2016-03-04 11:38:08 +01:00
parent 8e02096886
commit 78f1e67864
19 changed files with 228 additions and 32 deletions

View File

@ -15,7 +15,10 @@ void init()
dbquery(db,sql,NULL);
printf("Finish init\n");
}
void pexit()
{
LOG("%s\n","Plugin DUMMY is exited");
}
void execute(int client,const char* method,dictionary rq)
{
@ -50,7 +53,6 @@ void execute(int client,const char* method,dictionary rq)
__t(client, "],\"total\":%d}",records->idx);
free(records);
//__t(client, query);
}
// delete record