mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- plugin-code: cleanup from many unused code; ...
* remove intergration conversion because we can use the integer as it is * update headers Do we need /src/plugin.h anymore? Maybe this code could be merged into src/gui/plugins.h. Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
72
src/plugin.h
72
src/plugin.h
@@ -1,60 +1,28 @@
|
||||
|
||||
#ifndef TPLUGIN_H
|
||||
#define TPLUGIN_H
|
||||
#ifndef __plugin_h__
|
||||
#define __plugin_h__
|
||||
|
||||
typedef struct _PluginParam
|
||||
// plugin type as defined in plugin's cfg
|
||||
enum
|
||||
{
|
||||
const char * id;
|
||||
char * val;
|
||||
struct _PluginParam * next;
|
||||
PLUGIN_TYPE_DISABLED = 0,
|
||||
PLUGIN_TYPE_GAME = 1,
|
||||
PLUGIN_TYPE_TOOL = 2,
|
||||
PLUGIN_TYPE_SCRIPT = 3,
|
||||
PLUGIN_TYPE_LUA = 4
|
||||
};
|
||||
|
||||
} PluginParam;
|
||||
|
||||
typedef int (*PluginExec)( PluginParam *par );
|
||||
/* das dlsym kann auf PluginExec gecastet werden */
|
||||
|
||||
/* NOTE : alle Plugins haben uebergangs-weise neue und alte schnittstelle */
|
||||
/* neues Symbol : plugin_exec */
|
||||
/* es muessen nur benutzte ids gesetzt werden : nicht genannt = nicht benutzt */
|
||||
|
||||
/* fixed ID definitions */
|
||||
#define P_ID_FBUFFER "fd_framebuffer"
|
||||
#define P_ID_RCINPUT "fd_rcinput"
|
||||
#define P_ID_LCD "fd_lcd"
|
||||
#define P_ID_NOPIG "no_pig" // 1: plugin dont show internal pig
|
||||
#define P_ID_VTXTPID "pid_vtxt"
|
||||
#define P_ID_PROXY "proxy" // set proxy for save into highscore
|
||||
#define P_ID_PROXY_USER "proxy_user" // format "user:pass"
|
||||
#define P_ID_HSCORE "hscore" // highscore-server (as url)
|
||||
#define P_ID_VFORMAT "video_format" // videoformat (0 = auto, 1 = 16:9, 2 = 4:3)
|
||||
#define P_ID_OFF_X "off_x" // screen-top-offset x
|
||||
#define P_ID_OFF_Y "off_y" // screen-top-offset y
|
||||
#define P_ID_END_X "end_x" // screen-end-offset x
|
||||
#define P_ID_END_Y "end_y" // screen-end-offset y
|
||||
#define P_ID_RCBLK_ANF "rcblk_anf" // Key-Repeatblocker Anfang
|
||||
#define P_ID_RCBLK_REP "rcblk_rep" // Key-Repeatblocker Wiederholung
|
||||
|
||||
typedef enum plugin_type
|
||||
// plugin integration as defined in plugin's cfg
|
||||
enum
|
||||
{
|
||||
PLUGIN_TYPE_DISABLED = 0,
|
||||
PLUGIN_TYPE_GAME = 1,
|
||||
PLUGIN_TYPE_TOOL = 2,
|
||||
PLUGIN_TYPE_SCRIPT = 3,
|
||||
PLUGIN_TYPE_LUA = 4
|
||||
}
|
||||
plugin_type_t;
|
||||
|
||||
typedef enum integration_type
|
||||
{
|
||||
INTEGRATION_TYPE_DISABLED = 0,
|
||||
PLUGIN_INTEGRATION_DISABLED = 0,
|
||||
/*
|
||||
INTEGRATION_TYPE_MAIN = 1,
|
||||
PLUGIN_INTEGRATION_MAIN = 1,
|
||||
*/
|
||||
INTEGRATION_TYPE_MULTIMEDIA = 2,
|
||||
INTEGRATION_TYPE_SETTING = 3,
|
||||
INTEGRATION_TYPE_SERVICE = 4,
|
||||
INTEGRATION_TYPE_INFORMATION = 5
|
||||
}
|
||||
integration_type_t;
|
||||
PLUGIN_INTEGRATION_MULTIMEDIA = 2,
|
||||
PLUGIN_INTEGRATION_SETTING = 3,
|
||||
PLUGIN_INTEGRATION_SERVICE = 4,
|
||||
PLUGIN_INTEGRATION_INFORMATION = 5
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // __plugin_h__
|
||||
|
Reference in New Issue
Block a user