mirror of
https://github.com/owntracks/recorder.git
synced 2026-04-09 00:36:50 +00:00
18 lines
373 B
C
18 lines
373 B
C
#ifndef _UTIL_H_INCL_
|
|
# define _UTIL_H_INCL_
|
|
|
|
#ifndef TRUE
|
|
# define TRUE (1)
|
|
# define FALSE (0)
|
|
#endif
|
|
|
|
#include <time.h>
|
|
#include "json.h"
|
|
|
|
const char *isotime(time_t t);
|
|
char *slurp_file(char *filename, int fold_newlines);
|
|
int json_copy_to_object(JsonNode * obj, JsonNode * object_or_array, int clobber);
|
|
int json_copy_from_file(JsonNode * obj, char *filename);
|
|
|
|
#endif
|