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 | 08951d4af59a8e8c6f760453bc84f59ee8fc157c (patch) | |
| tree | 4bd9c51d867647a98f4201f11aaa01b15ea21a9c /src/menu/privinc | |
| parent | c9dee333fe4883f73d73f04db73227c8d23aafb8 (diff) | |
| download | rts-08951d4af59a8e8c6f760453bc84f59ee8fc157c.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 */ |
