-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgapplet.h
More file actions
45 lines (36 loc) · 942 Bytes
/
gapplet.h
File metadata and controls
45 lines (36 loc) · 942 Bytes
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
36
37
38
39
40
41
42
43
44
/*
* File: gapplet.h
* Author: Sir Gee of Five
*
* Created on May 7, 2011, 4:32 PM
*/
#ifndef GAPPLET_H
#define GAPPLET_H
#define GAPPLET_SUCCESS (0)
#define GAPPLET_FAILURE (-1)
#define GAPPLET_NULLPTR (-2)
#define GAPPLET_MEMORY (-3)
#define GAPPLET_NAME_LEN (63)
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _Gapplet {
unsigned int id;
char name[GAPPLET_NAME_LEN + 1];
int *(button_circle)(void* pvApp);
int *(button_cross)(void* pvApp);
int *(button_ltrigger)(void* pvApp);
int *(button_rtrigger)(void* pvApp);
int *(button_square)(void* pvApp);
int *(button_triangle)(void* pvApp);
int *(dpad_down)(void* pvApp);
int *(dpad_left)(void* pvApp);
int *(dpad_right)(void* pvApp);
int *(dpad_up)(void* pvApp);
int *(redraw)(void* pvApp);
}
Gapplet;
#ifdef __cplusplus
}
#endif
#endif /* GAPPLET_H */