X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=petitboot.h;h=893be04605e9614ed846c5828cbc28f767c2e053;hp=aeac73bd0a2efd5cda2f5ffe4036305cb26a53cc;hb=e518d1d16c16781d6824ece2ee0ddd1ac2339703;hpb=f60d0b2e7dbd9d85980866c68d0f87b6bc823663 diff --git a/petitboot.h b/petitboot.h index aeac73b..893be04 100644 --- a/petitboot.h +++ b/petitboot.h @@ -1,5 +1,6 @@ #include +#include #define LOG(fmt...) printf(fmt) @@ -9,7 +10,9 @@ int pboot_add_device(const char *dev_id, const char *name, twin_pixmap_t *pixmap); int pboot_add_option(int devindex, const char *title, - const char *subtitle, twin_pixmap_t *badge); + const char *subtitle, twin_pixmap_t *badge, void *data); int pboot_remove_device(const char *dev_id); -int pboot_start_device_discovery(void); +int pboot_start_device_discovery(int udev_trigger); +void pboot_exec_option(void *data); +void pboot_message(const char *fmt, ...);