2015-08-15 01:42:55 -07:00
|
|
|
#ifndef MISC_H_INCLUDED
|
|
|
|
# define MISC_H_INCLUDED
|
|
|
|
|
|
|
|
#include <time.h>
|
2015-08-15 03:41:22 -07:00
|
|
|
#include "udata.h"
|
|
|
|
|
2015-08-25 11:22:50 -07:00
|
|
|
extern char STORAGEDIR[];
|
|
|
|
|
2015-08-15 03:41:22 -07:00
|
|
|
#ifndef TRUE
|
|
|
|
# define TRUE (1)
|
|
|
|
# define FALSE (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int mkpath(char *path);
|
2015-08-14 23:14:34 -07:00
|
|
|
char *bindump(char *buf, long buflen);
|
2015-08-15 01:42:55 -07:00
|
|
|
|
2015-09-09 12:21:38 -07:00
|
|
|
// void monitor_update(struct udata *ud, time_t now, char *topic);
|
|
|
|
void monitorhook(struct udata *userdata, time_t now, char *topic);
|
|
|
|
char *monitor_get();
|
2015-08-15 04:18:27 -07:00
|
|
|
|
2015-08-15 01:42:55 -07:00
|
|
|
#endif
|