aboutsummaryrefslogtreecommitdiff
path: root/src/menu/privinc/menu_private.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-27 17:03:06 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-11-01 16:26:16 +0100
commit980858186149651df5543b6fc99a4f7db0cdd089 (patch)
treed347200b0a562d84df505097651ad0642f207fdd /src/menu/privinc/menu_private.h
parent39f50e601d395bbd2d78d0147ac530b756da2fff (diff)
downloadjancity-980858186149651df5543b6fc99a4f7db0cdd089.tar.gz
WIP
Diffstat (limited to 'src/menu/privinc/menu_private.h')
-rw-r--r--src/menu/privinc/menu_private.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/menu/privinc/menu_private.h b/src/menu/privinc/menu_private.h
index 181825c..d8aa089 100644
--- a/src/menu/privinc/menu_private.h
+++ b/src/menu/privinc/menu_private.h
@@ -3,8 +3,10 @@
#include <camera.h>
#include <input.h>
+#include <net.h>
#include <peripheral.h>
-#include <stdbool.h>
+#include <settings.h>
+#include <stddef.h>
#ifdef __cplusplus
extern "C"
@@ -16,6 +18,7 @@ struct menu_common
struct camera cam;
union peripheral p;
struct input in;
+ struct settings s;
};
int menu_update(struct menu_common *c,
@@ -23,9 +26,11 @@ int menu_update(struct menu_common *c,
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_hostjoin(struct menu_common *c);
+int menu_settings(struct menu_common *c);
int menu_join(struct menu_common *c);
-int menu_gamecfg(struct menu_common *c);
+int menu_host(struct menu_common *c);
+int menu_gamecfg(struct menu_common *c, struct net_host *h, net_peer p);
void menu_on_pressed(void *arg);
#ifdef __cplusplus