blob: 20be46167bcc6bfcd2d8228fb5405ff57e17ff9a [file] [log] [blame]
Aaron Wisnerdb511202018-06-26 15:38:35 -05001#pragma once
2
3#include <inttypes.h>
4#include <stdlib.h>
5
6#include <string>
7
8#include <bootimg.h>
9
10/* util stuff */
11double now();
12char* xstrdup(const char*);
13void set_verbose();
14
Tom Cherry11f12092018-08-29 21:36:28 -070015void Status(const std::string& message);
16
Aaron Wisnerdb511202018-06-26 15:38:35 -050017// These printf-like functions are implemented in terms of vsnprintf, so they
18// use the same attribute for compile-time format string checking.
19void die(const char* fmt, ...) __attribute__((__noreturn__))
20__attribute__((__format__(__printf__, 1, 2)));
21void verbose(const char* fmt, ...) __attribute__((__format__(__printf__, 1, 2)));