summaryrefslogtreecommitdiff
path: root/input_gadgets.h
diff options
context:
space:
mode:
Diffstat (limited to 'input_gadgets.h')
-rw-r--r--input_gadgets.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/input_gadgets.h b/input_gadgets.h
index 002d9ef..ec6aab3 100644
--- a/input_gadgets.h
+++ b/input_gadgets.h
@@ -1,7 +1,17 @@
-struct MemoryStruct {
+typedef struct {
unsigned char *memory;
size_t size;
-};
+} MemoryStruct;
+
+typedef struct {
+ int is_update;
+ int category; // 0: Met; 1: Health
+ char *event;
+ char *headline;
+ int severity;
+ time_t onset, expires;
+} warning_t;
int gadgets_retrieve_current_temperature(unsigned char *output, int max_len);
int gadgets_retrieve_weather_forecast(unsigned char *output, int max_len);
+int gadgets_retrieve_weather_warnings(unsigned char *output, int max_len);