Ignore:
Timestamp:
10/17/14 18:47:30 (9 years ago)
Author:
gost
Message:

[titan] webif.. start plugin with query?startplugin&name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r30371 r30591  
    63116311}
    63126312
     6313char* webstartplugin(char* param, int fmt)
     6314{
     6315        void (*startplugin)(void);
     6316        char* buf = NULL;
     6317       
     6318        struct skin* pluginnode = getplugin(param);
     6319       
     6320        if(pluginnode != NULL)
     6321        {
     6322                startplugin = dlsym(pluginnode->pluginhandle, "start");
     6323                if(startplugin != NULL)
     6324                {
     6325                        resettvpic();
     6326                        startplugin();
     6327                        resettvpic();
     6328                        buf = ostrcat(buf, "ok", 1, 0);
     6329                }
     6330                else
     6331                        buf = ostrcat(buf, "internal error", 1, 0);
     6332        }
     6333        else
     6334                buf = ostrcat(buf, "wrong plugin name", 1, 0);
     6335               
     6336        return buf;
     6337}
     6338       
     6339       
    63136340#endif
Note: See TracChangeset for help on using the changeset viewer.