]> git.ozlabs.org Git - petitboot/blob - petitboot.h
tests: add tests for assorted ydl and ubuntu configs
[petitboot] / petitboot.h
1
2 #include <libtwin/twin.h>
3 #include <stdarg.h>
4
5 #define LOG(fmt...)     printf(fmt)
6
7 #define PBOOT_MAX_DEV           16
8 #define PBOOT_MAX_OPTION        16
9
10 int pboot_add_device(const char *dev_id, const char *name,
11                 twin_pixmap_t *pixmap);
12 int pboot_add_option(int devindex, const char *title,
13                      const char *subtitle, twin_pixmap_t *badge, void *data);
14 int pboot_remove_device(const char *dev_id);
15
16 int pboot_start_device_discovery(int udev_trigger);
17 void pboot_exec_option(void *data);
18 void pboot_message(const char *fmt, ...);