summaryrefslogtreecommitdiff
path: root/input_gadgets.h
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-25 16:19:37 +0200
committerErich Eckner <git@eckner.net>2018-10-25 16:19:37 +0200
commitca5cdd2bd007d3e30ca0d01e3ea10011051731bb (patch)
treeb9b4ffaff1d05df8ffd42ee3cef3574d7a8c43a4 /input_gadgets.h
parent27138a87d4f47cba9687d6c5c4dc90addd26353e (diff)
downloadanzeige-ca5cdd2bd007d3e30ca0d01e3ea10011051731bb.tar.xz
input_gadgets: gadgets_retrieve_weather_warnings() new
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);