From 08951d4af59a8e8c6f760453bc84f59ee8fc157c Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 7 Jul 2022 02:13:14 +0200 Subject: Implement join/host and game cfg menus --- src/menu/privinc/menu_private.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/menu/privinc/menu_private.h (limited to 'src/menu/privinc') 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 +#include +#include + +#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 */ -- cgit v1.2.3