Esempio n. 1
0
void
airplay_init(void)
{
  http_path_add("/reverse", NULL, airplay_reverse, 1);
  http_path_add("/scrub", NULL, airplay_scrub, 1);
  http_path_add("/play", NULL, airplay_play, 1);
  http_path_add("/rate", NULL, airplay_rate, 1);
}
Esempio n. 2
0
static void __attribute__((constructor)) mallocsetup(void)
{
  hts_lwmutex_init(&mutex);

#ifdef USE_VIRTUAL_MEM

  int size = MB(256);
  int psize = MB(96);

  Lv2Syscall6(300, size, psize, 0xFFFFFFFFU, 0x200ULL, 1UL, (u64)&heap_base);
#else

  int size = MB(96);

  Lv2Syscall3(348, size, 0x400, (u64)&heap_base);

#endif

  total_avail = size;
  gpool = tlsf_create((void *)(intptr_t)heap_base, size);

  // Malloc is initialized now so we can safely do this

  http_path_add("/api/memstats", NULL, memstats, 1);
}
Esempio n. 3
0
void
vimeo_init(void)
{
  http_path_add("/vimeo/callback", NULL, vimeo_callback);
  http_path_add("/vimeo/code", NULL, vimeo_code);
}
Esempio n. 4
0
static void
np_stats_init(void)
{
  http_path_add("/api/np/stats", NULL, dumpstats, 1);
}
Esempio n. 5
0
static void
screenshot_init(void)
{
  hts_mutex_init(&screenshot_mutex);
  http_path_add("/api/screenshot", NULL, hc_screenshot, 0);
}
Esempio n. 6
0
static void
ecmascript_stats_init(void)
{
  http_path_add("/showtime/ecmascript/stats", NULL, dumpstats, 1);
}