wip: late-night untested launcher app musings
This commit is contained in:
24
launcher/widgets/fake_widget.c
Normal file
24
launcher/widgets/fake_widget.c
Normal 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;
|
||||
}
|
||||
18
launcher/widgets/fake_widget.h
Normal file
18
launcher/widgets/fake_widget.h
Normal 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_
|
||||
Reference in New Issue
Block a user