more wip launcher stuff

This commit is contained in:
Joey Castillo
2021-10-03 12:31:51 -04:00
parent 624ff19580
commit 399caa2582
4 changed files with 48 additions and 40 deletions

View File

@@ -5,12 +5,12 @@ void fake_widget_setup(LauncherSettings *settings, void ** context_ptr) {
*context_ptr = NULL;
}
void fake_widget_enter_foreground(LauncherSettings *settings, void *context) {
void fake_widget_activate(LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
}
bool fake_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context) {
void fake_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context) {
(void) event;
(void) settings;
(void) context;
@@ -18,7 +18,7 @@ bool fake_widget_loop(LauncherEvent event, LauncherSettings *settings, void *con
return true;
}
void fake_widget_enter_background(LauncherSettings *settings, void *context) {
void fake_widget_resign(LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
}

View File

@@ -4,15 +4,17 @@
#include "launcher.h"
void fake_widget_setup(LauncherSettings *settings, void ** context_ptr);
void fake_widget_enter_foreground(LauncherSettings *settings, void *context);
bool fake_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context);
void fake_widget_enter_background(LauncherSettings *settings, void *context);
void fake_widget_activate(LauncherSettings *settings, void *context);
void fake_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context);
void fake_widget_resign(LauncherSettings *settings, void *context);
#define fake_widget { \
"WI dGIt01", \
true, \
fake_widget_setup, \
fake_widget_enter_foreground, \
fake_widget_activate, \
fake_widget_loop, \
fake_widget_enter_background, \
fake_widget_resign, \
}
#endif // FAKE_WIDGET_H_