wip: late-night untested launcher app musings

This commit is contained in:
Joey Castillo
2021-09-28 01:06:37 -04:00
parent 15ae7ab84b
commit 624ff19580
7 changed files with 298 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include "fake_widget.h"
void fake_widget_setup(LauncherSettings *settings, void ** context_ptr) {
(void) settings;
*context_ptr = NULL;
}
void fake_widget_enter_foreground(LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
}
bool fake_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context) {
(void) event;
(void) settings;
(void) context;
return true;
}
void fake_widget_enter_background(LauncherSettings *settings, void *context) {
(void) settings;
(void) context;
}

View File

@@ -0,0 +1,18 @@
#ifndef FAKE_WIDGET_H_
#define FAKE_WIDGET_H_
#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);
#define fake_widget { \
fake_widget_setup, \
fake_widget_enter_foreground, \
fake_widget_loop, \
fake_widget_enter_background, \
}
#endif // FAKE_WIDGET_H_