@geastack/apple 0.2.31 → 0.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +0,0 @@
1
- #include <string.h>
2
-
3
- /* The apps.h header in @geastack/core's include/ is C++-only. The framework
4
- * itself calls the gea_embedded_apps_* C API via generated app code (and
5
- * compiles it as C), so we declare the prototypes inline here. */
6
- int gea_embedded_apps_launch(const char *app_id);
7
- int gea_embedded_apps_return_to_launcher_on_reset(void);
8
- void gea_embedded_apps_start_launcher_button_task(void);
9
- const char *gea_embedded_apps_get_current_id(void);
10
-
11
- static char s_current_app_id[64] = "";
12
-
13
- int gea_embedded_apps_launch(const char *app_id)
14
- {
15
- if (!app_id || !app_id[0]) return 0;
16
- strncpy(s_current_app_id, app_id, sizeof(s_current_app_id) - 1);
17
- s_current_app_id[sizeof(s_current_app_id) - 1] = '\0';
18
- return 1;
19
- }
20
-
21
- int gea_embedded_apps_return_to_launcher_on_reset(void)
22
- {
23
- return 0;
24
- }
25
-
26
- void gea_embedded_apps_start_launcher_button_task(void) {}
27
-
28
- const char *gea_embedded_apps_get_current_id(void)
29
- {
30
- return s_current_app_id;
31
- }