00001 00024 // MythTV headers 00025 #include <mythtv/mythcontext.h> // for MYTH_BINARY_VERSION 00026 #include <mythtv/mythdialogs.h> 00027 #include <mythtv/mythpluginapi.h> 00028 00029 // MythControls headers 00030 #include "mythcontrols.h" 00031 00036 int mythplugin_init(const char *libversion) 00037 { 00038 bool ok = gContext->TestPopupVersion( 00039 "mythcontrols", libversion, MYTH_BINARY_VERSION); 00040 00041 return (ok) ? 0 : -1; 00042 } 00043 00047 int mythplugin_run(void) 00048 { 00049 MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); 00050 00051 MythControls *mythcontrols = new MythControls(mainStack, "mythcontrols"); 00052 00053 if (mythcontrols->Create()) 00054 mainStack->AddScreen(mythcontrols); 00055 else 00056 return -1; 00057 00058 return 1; 00059 } 00060 00062 int mythplugin_config(void) 00063 { 00064 return 0; 00065 }
1.5.5