summaryrefslogtreecommitdiff
path: root/input_gadgets.h
blob: 1c667e3b6a3d76ab02bbd8e2457deda3219ca8c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef INPUT_GADGETS_H
#define INPUT_GADGETS_H

typedef struct {
  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;

char *gadgets_retrieve_current_temperature(char *output, int max_len);
char *gadgets_retrieve_weather_forecast(char *output, int max_len);
char *gadgets_retrieve_weather_warnings(char *output, int max_len);

#endif // INPUT_GADGETS_H