1 /*
2  *	aprsc
3  *
4  *	(c) Heikki Hannikainen, OH7LZB <hessu@hes.iki.fi>
5  *
6  *     This program is licensed under the BSD license, which can be found
7  *     in the file LICENSE.
8  *
9  */
10 
11 #ifndef STATUS_H
12 #define STATUS_H
13 
14 #include <time.h>
15 #include "cJSON.h"
16 
17 extern time_t startup_tick, startup_time;
18 extern cJSON *liveupgrade_status;
19 
20 extern void status_error(int ttl, const char *err);
21 
22 extern char *status_json_string(int no_cache, int periodical);
23 extern int status_dump_file(void);
24 extern int status_dump_liveupgrade(void);
25 extern int status_read_liveupgrade(void);
26 extern void status_init(void);
27 extern void status_atend(void);
28 
29 extern char *hex_encode(const char *buf, int len);
30 extern int hex_decode(char *obuf, int olen, const char *hex);
31 
32 #endif
33