diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-07 02:13:14 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-07 02:45:23 +0200 |
| commit | f318a66f8ccc847bd9940d125936aa87df74fb0f (patch) | |
| tree | 06c7af615cda98f385e130c6a28b145a4296e12b /src/menu/privinc | |
| parent | e50aad2a6d69093a10a9157600f4a23fc731b7b3 (diff) | |
| download | jancity-f318a66f8ccc847bd9940d125936aa87df74fb0f.tar.gz | |
Implement join/host and game cfg menus
Diffstat (limited to 'src/menu/privinc')
| -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 */ |
