summaryrefslogtreecommitdiff
path: root/input_gadgets.h
blob: b3e364472996fe7706c5598b46cec39fa92a1800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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, double *temperature, double *humidity);
char *gadgets_retrieve_weather_forecast(char *output, int max_len);
char *gadgets_retrieve_weather_warnings(char *output, int max_len);
char *gadgets_retrieve_humidity(char *output, int max_len, double fh_temperature, double fh_humidity);

#endif // INPUT_GADGETS_H