2 * On-screen Display Daemon -- Utility Functions
4 * (c) 2010 Martin Mares <mj@ucw.cz>
9 #define NONRET __attribute__((noreturn))
10 #define FORMAT_CHECK(func,i,j) __attribute__((format(func,i,j)))
12 typedef uint64_t timestamp_t;
16 void NONRET FORMAT_CHECK(printf,1,2) die(char *fmt, ...);
19 #define DBG(f...) printf(f)
21 #define DBG(f...) do { } while(0)
24 void *xmalloc(int size);
26 timestamp_t get_current_time(void);
33 struct osd_msg *osd_new_msg(void);
34 void osd_add_line(struct osd_msg *msg, char *key, char *val);
35 void osd_send(struct osd_msg *msg);
38 void osd_wait(int seconds);