undo push-model SDL2 sound backend, use SDL1 approach
[rofl0r-gnuboy.git] / exports.c
blob68f6e4df386078de6ef4f8fa49a3ed9580078165
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "rc.h"
6 extern rcvar_t rcfile_exports[], emu_exports[], loader_exports[],
7 lcd_exports[], rtc_exports[], debug_exports[], sound_exports[],
8 vid_exports[], joy_exports[], pcm_exports[];
11 rcvar_t *sources[] =
13 rcfile_exports,
14 emu_exports,
15 loader_exports,
16 lcd_exports,
17 rtc_exports,
18 debug_exports,
19 sound_exports,
20 vid_exports,
21 joy_exports,
22 pcm_exports,
23 NULL
27 void init_exports()
29 rcvar_t **s = sources;
31 while (*s)
32 rc_exportvars(*(s++));
36 void show_exports()
38 int i, j;
39 for (i = 0; sources[i]; i++)
40 for (j = 0; sources[i][j].name; j++)
41 printf("%s\n", sources[i][j].name);