Esempio n. 1
0
void api_dvr_init ( void )
{
  static api_hook_t ah[] = {
    { "dvr/config/class",          ACCESS_OR|ACCESS_ADMIN|ACCESS_RECORDER,
                                     api_idnode_class, (void*)&dvr_config_class },
    { "dvr/config/grid",           ACCESS_OR|ACCESS_ADMIN|ACCESS_RECORDER,
                                     api_idnode_grid, api_dvr_config_grid },
    { "dvr/config/create",         ACCESS_ADMIN, api_dvr_config_create, NULL },

    { "dvr/entry/class",           ACCESS_RECORDER, api_idnode_class, (void*)&dvr_entry_class },
    { "dvr/entry/grid",            ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid },
    { "dvr/entry/grid_upcoming",   ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid_upcoming },
    { "dvr/entry/grid_finished",   ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid_finished },
    { "dvr/entry/grid_failed",     ACCESS_RECORDER, api_idnode_grid, api_dvr_entry_grid_failed },
    { "dvr/entry/create",          ACCESS_RECORDER, api_dvr_entry_create, NULL },
    { "dvr/entry/create_by_event", ACCESS_RECORDER, api_dvr_entry_create_by_event, NULL },
    { "dvr/entry/stop",            ACCESS_RECORDER, api_dvr_entry_stop, NULL },
    { "dvr/entry/cancel",          ACCESS_RECORDER, api_dvr_entry_cancel, NULL },

    { "dvr/autorec/class",         ACCESS_RECORDER, api_idnode_class, (void*)&dvr_autorec_entry_class },
    { "dvr/autorec/grid",          ACCESS_RECORDER, api_idnode_grid,  api_dvr_autorec_grid },
    { "dvr/autorec/create",        ACCESS_RECORDER, api_dvr_autorec_create, NULL },
    { "dvr/autorec/create_by_series", ACCESS_RECORDER, api_dvr_autorec_create_by_series, NULL },

    { "dvr/timerec/class",         ACCESS_RECORDER, api_idnode_class, (void*)&dvr_timerec_entry_class },
    { "dvr/timerec/grid",          ACCESS_RECORDER, api_idnode_grid,  api_dvr_timerec_grid },
    { "dvr/timerec/create",        ACCESS_RECORDER, api_dvr_timerec_create, NULL },

    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 2
0
void api_input_init ( void )
{
  static api_hook_t ah[] = {
    { "hardware/tree", ACCESS_ADMIN,     api_idnode_tree, api_input_hw_tree }, 
    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 3
0
void api_epggrab_init ( void )
{
  static api_hook_t ah[] = {
    { "epggrab/channel/list", ACCESS_ANONYMOUS,
      api_epggrab_channel_list, NULL },
    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 4
0
void api_language_init ( void )
{
  static api_hook_t ah[] = {

    { "language/list", ACCESS_ANONYMOUS, api_language_enum, NULL },

    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 5
0
void
api_imagecache_init ( void )
{
  static api_hook_t ah[] = {
    { "imagecache/config/load", ACCESS_ADMIN, api_imagecache_load, NULL },
    { "imagecache/config/save", ACCESS_ADMIN, api_imagecache_save, NULL },
    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 6
0
void api_input_init ( void )
{
  static api_hook_t ah[] = {
    { "hardware/tree", ACCESS_ADMIN,     api_idnode_tree, api_input_hw_tree }, 
#if ENABLE_SATIP_CLIENT
    { "hardware/satip/discover", ACCESS_ADMIN, api_input_satip_discover, NULL },
#endif
    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 7
0
void api_access_init ( void )
{
  static api_hook_t ah[] = {
    { "access/entry/class",  ACCESS_ADMIN, api_idnode_class, (void*)&access_entry_class },
    { "access/entry/grid",   ACCESS_ADMIN, api_idnode_grid,  api_access_entry_grid },
    { "access/entry/create", ACCESS_ADMIN, api_access_entry_create, NULL },

    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 8
0
void
api_config_init ( void )
{
  static api_hook_t ah[] = {
    { "config/capabilities", ACCESS_WEB_INTERFACE, api_config_capabilities, NULL },
    { "config/load",         ACCESS_ADMIN, api_idnode_load_simple, &config },
    { "config/save",         ACCESS_ADMIN, api_idnode_save_simple, &config },
    { "tvhlog/config/load",  ACCESS_ADMIN, api_idnode_load_simple, &tvhlog_conf },
    { "tvhlog/config/save",  ACCESS_ADMIN, api_idnode_save_simple, &tvhlog_conf },
    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 9
0
void api_init ( void )
{
  static api_hook_t h[] = {
    { "serverinfo", ACCESS_ANONYMOUS, api_serverinfo, NULL },
    { NULL, 0, NULL, NULL }
  };
  api_register_all(h);

  /* Subsystems */
  api_idnode_init();
  api_input_init();
  api_mpegts_init();
  api_service_init();
  api_channel_init();
  api_epg_init();
  api_epggrab_init();
  api_status_init();
}
Esempio n. 10
0
void api_channel_init ( void )
{
    static api_hook_t ah[] = {
        { "channel/class",   ACCESS_ANONYMOUS, api_idnode_class, (void*)&channel_class },
        { "channel/grid",    ACCESS_ANONYMOUS, api_idnode_grid,  api_channel_grid },
        { "channel/list",    ACCESS_ANONYMOUS, api_channel_list, NULL },
        { "channel/create",  ACCESS_ADMIN,     api_channel_create, NULL },

        { "channeltag/class",ACCESS_ANONYMOUS, api_idnode_class, (void*)&channel_tag_class },
        { "channeltag/grid", ACCESS_ANONYMOUS, api_idnode_grid,  api_channel_tag_grid },
        { "channeltag/list", ACCESS_ANONYMOUS, api_channel_tag_list, NULL },
        { "channeltag/create",  ACCESS_ADMIN,  api_channel_tag_create, NULL },

        { NULL },
    };

    api_register_all(ah);
}
Esempio n. 11
0
void api_access_init ( void )
{
  static api_hook_t ah[] = {
    { "passwd/entry/class",  ACCESS_ADMIN, api_idnode_class, (void*)&passwd_entry_class },
    { "passwd/entry/grid",   ACCESS_ADMIN, api_idnode_grid,  api_passwd_entry_grid },
    { "passwd/entry/create", ACCESS_ADMIN, api_passwd_entry_create, NULL },

    { "ipblock/entry/class",  ACCESS_ADMIN, api_idnode_class, (void*)&ipblock_entry_class },
    { "ipblock/entry/grid",   ACCESS_ADMIN, api_idnode_grid,  api_ipblock_entry_grid },
    { "ipblock/entry/create", ACCESS_ADMIN, api_ipblock_entry_create, NULL },

    { "access/entry/class",  ACCESS_ADMIN, api_idnode_class, (void*)&access_entry_class },
    { "access/entry/userlist", ACCESS_ANONYMOUS, api_access_entry_userlist, NULL },
    { "access/entry/grid",   ACCESS_ADMIN, api_idnode_grid,  api_access_entry_grid },
    { "access/entry/create", ACCESS_ADMIN, api_access_entry_create, NULL },

    { NULL },
  };

  api_register_all(ah);
}
Esempio n. 12
0
void
api_wizard_init ( void )
{
  static api_hook_t ah[] = {
    { "wizard/hello/load",   ACCESS_ADMIN, wizard_idnode_load_simple, wizard_hello },
    { "wizard/hello/save",   ACCESS_ADMIN, wizard_idnode_save_simple, wizard_hello },
    { "wizard/login/load",   ACCESS_ADMIN, wizard_idnode_load_simple, wizard_login },
    { "wizard/login/save",   ACCESS_ADMIN, wizard_idnode_save_simple, wizard_login },
    { "wizard/network/load", ACCESS_ADMIN, wizard_idnode_load_simple, wizard_network },
    { "wizard/network/save", ACCESS_ADMIN, wizard_idnode_save_simple, wizard_network },
    { "wizard/input/load",   ACCESS_ADMIN, wizard_idnode_load_simple, wizard_input },
    { "wizard/input/save",   ACCESS_ADMIN, wizard_idnode_save_simple, wizard_input },
    { "wizard/status/load",  ACCESS_ADMIN, wizard_idnode_load_simple, wizard_status },
    { "wizard/status/save",  ACCESS_ADMIN, wizard_idnode_save_simple, wizard_status },
    { "wizard/mapping/load", ACCESS_ADMIN, wizard_idnode_load_simple, wizard_mapping },
    { "wizard/mapping/save", ACCESS_ADMIN, wizard_idnode_save_simple, wizard_mapping },
    { "wizard/start",        ACCESS_ADMIN, wizard_start, NULL },
    { "wizard/cancel",       ACCESS_ADMIN, wizard_cancel, NULL },
    { NULL },
  };

  api_register_all(ah);
}