aboutsummaryrefslogtreecommitdiffstats
path: root/apps/main_clock.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main_clock.hpp')
-rw-r--r--apps/main_clock.hpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/main_clock.hpp b/apps/main_clock.hpp
index 70d9755..c20af0f 100644
--- a/apps/main_clock.hpp
+++ b/apps/main_clock.hpp
@@ -4,14 +4,12 @@
#include "pico/util/datetime.h"
#include "../oled/ss_oled.h"
-void time_as_str(char *buf, uint buf_size, const datetime_t *t);
-void date_as_str(char *buf, uint buf_size, const datetime_t *t);
-void show_datetime(SSOLED *oled);
-
-int main_clock_init(SSOLED *oled, char *data, uint data_size);
-int main_clock_render(SSOLED *oled, char *data, uint data_size);
-int main_clock_btnpressed(SSOLED *oled, char *data, uint data_size, uint gpio);
-int main_clock_bgrefresh(SSOLED *oled, char *data, uint data_size, char in_foreground);
-int main_clock_destroy(SSOLED *oled, char *data, uint data_size);
+namespace app_main_clock {
+ int init(SSOLED *oled, char *data, uint data_size);
+ int render(SSOLED *oled, char *data, uint data_size);
+ int btnpressed(SSOLED *oled, char *data, uint data_size, uint gpio);
+ int bgrefresh(SSOLED *oled, char *data, uint data_size, char in_foreground);
+ int destroy(SSOLED *oled, char *data, uint data_size);
+}
#endif \ No newline at end of file