recorder/util.h

18 lines
373 B
C
Raw Normal View History

2015-08-22 06:52:39 -07:00
#ifndef _UTIL_H_INCL_
# define _UTIL_H_INCL_
2015-08-25 09:00:31 -07:00
#ifndef TRUE
# define TRUE (1)
# define FALSE (0)
#endif
2015-08-22 06:52:39 -07:00
#include <time.h>
2015-08-25 09:00:31 -07:00
#include "json.h"
2015-08-22 06:52:39 -07:00
const char *isotime(time_t t);
2015-08-25 09:00:31 -07:00
char *slurp_file(char *filename, int fold_newlines);
2015-08-25 09:53:37 -07:00
int json_copy_to_object(JsonNode * obj, JsonNode * object_or_array, int clobber);
2015-08-25 09:00:31 -07:00
int json_copy_from_file(JsonNode * obj, char *filename);
2015-08-22 06:52:39 -07:00
#endif