discover: Don't rely on ctx->conf_url side-effect in user_event_parse_conf_url
[petitboot] / discover / user-event.h
index 976c25761c810fc63aeaadc6ca7979889330cb59..b892c9a4c44627b4e74257e88ad6a817daac7530 100644 (file)
@@ -19,6 +19,8 @@
 #if !defined(_PB_DISCOVER_USER_EVENT_H)
 #define _PB_DISCOVER_USER_EVENT_H
 
+#include <stdbool.h>
+
 #include "device-handler.h"
 
 #define PBOOT_USER_EVENT_SOCKET "/tmp/petitboot.ev"
@@ -28,7 +30,7 @@ struct user_event;
 struct waitset;
 
 struct pb_url *user_event_parse_conf_url(struct discover_context *ctx,
-               struct event *event);
+               struct event *event, bool *complete_url);
 char **user_event_parse_conf_filenames(
                struct discover_context *ctx, struct event *event);
 struct user_event *user_event_init(struct waitset *waitset,