Browse code

rebase code for better communication (example from clay-example)

Louis authored on18/11/2021 11:56:49
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+#pragma once
2
+#include <pebble.h>
3
+
4
+// Persistent storage key
5
+#define SETTINGS_KEY 1
6
+
7
+// Define our settings struct
8
+typedef struct Settings {
9
+  char username;
10
+  char password;
11
+  char server;
12
+} Settings;
13
+
14
+static void prv_save_settings();
15
+static GRect init_text_layer(Layer *parent_layer, TextLayer **text_layer, int16_t y, int16_t h, int16_t additional_right_margin, char *font_key) ;
16
+static void init_statusbar_text_layer(Layer *parent, TextLayer **layer);
17
+static void inbox_dropped_callback(AppMessageResult reason, void *context);
18
+static void outbox_sent_callback(DictionaryIterator *iter, void *context);
19
+static void outbox_failed_callback(DictionaryIterator *iter, AppMessageResult reason, void *context);
20
+static void select_click_handler(ClickRecognizerRef recognizer, void *context);
21
+static void up_click_handler(ClickRecognizerRef recognizer, void *context) 
22
+static void down_click_handler(ClickRecognizerRef recognizer, void *context);
23
+static void click_config_provider(void *context);
24
+static void update_time();
25
+static void comm_is_ready();
26
+static void tick_handler(struct tm *tick_time, TimeUnits units_changed);
27
+static void inbox_received_callback(DictionaryIterator *iter, void *context);
28
+static void init(void);
29
+static void deinit(void);