diff options
Diffstat (limited to 'src/menu/privinc/menu_private.h')
| -rw-r--r-- | src/menu/privinc/menu_private.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/menu/privinc/menu_private.h b/src/menu/privinc/menu_private.h new file mode 100644 index 0000000..1ab267b --- /dev/null +++ b/src/menu/privinc/menu_private.h @@ -0,0 +1,32 @@ +#ifndef MENU_PRIVATE_H +#define MENU_PRIVATE_H + +#include <camera.h> +#include <peripheral.h> +#include <stdbool.h> + +#ifdef __cplusplus +extern "C" +{ +#endif + +struct menu_common +{ + struct camera cam; + union peripheral p; +}; + +int menu_update(struct menu_common *c, + int (*update)(struct menu_common *, void *), + int (*render)(const struct menu_common *, void *), + void *arg); +int menu_main(struct menu_common *c); +int menu_hostjoin(struct menu_common *c, bool *back); +int menu_gamecfg(struct menu_common *c); +void menu_on_pressed(void *arg); + +#ifdef __cplusplus +} +#endif + +#endif /* MENU_PRIVATE_H */ |
