major change for plugin handle

This commit is contained in:
lxsang
2016-10-29 15:02:16 +02:00
parent ccbf742713
commit 88e284e12b
19 changed files with 89 additions and 11 deletions

View File

@ -189,4 +189,27 @@ void rmfolder(int c, const char* m, dictionary rq)
void pexit()
{
LOG("Exit file manager,plugins\n");
}
void handler(int client, const char* method, const char* rqpth, dictionary rq)
{
if(EQU(rqpth,"default"))
{
execute(client,method,rq);
}
else if(EQU(rqpth,"add"))
{
add(client,method,rq);
}
else if(EQU(rqpth,"rmfolder"))
{
rmfolder(client,method,rq);
}
else if(EQU(rqpth,"mkfolder"))
{
mkfolder(client,method,rq);
}
else
{
unknow(client);
}
}

Binary file not shown.