blob: 181825c21cfa845eb9fc67d7aa9cd7d0b278df11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef MENU_PRIVATE_H
#define MENU_PRIVATE_H
#include <camera.h>
#include <input.h>
#include <peripheral.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
struct menu_common
{
struct camera cam;
union peripheral p;
struct input in;
};
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_join(struct menu_common *c);
int menu_gamecfg(struct menu_common *c);
void menu_on_pressed(void *arg);
#ifdef __cplusplus
}
#endif
#endif /* MENU_PRIVATE_H */
|