]> git.ozlabs.org Git - petitboot/blobdiff - lib/url/url.h
discover/boot: Set boot_tty variable before kexec
[petitboot] / lib / url / url.h
index 3cb7cd876b0ac228c8c76570944eb4c4ef116ffa..9043615590c1a7e95e5d938ccc2d0565af994456 100644 (file)
@@ -19,6 +19,8 @@
 #if !defined(_PB_URL_PARSER_H)
 #define _PB_URL_PARSER_H
 
 #if !defined(_PB_URL_PARSER_H)
 #define _PB_URL_PARSER_H
 
+#include <stdbool.h>
+
 /**
  * enum pb_url_scheme - Enumeration of the URL schemes we can handle.
  */
 /**
  * enum pb_url_scheme - Enumeration of the URL schemes we can handle.
  */
@@ -58,7 +60,11 @@ struct pb_url {
        char *file;
 };
 
        char *file;
 };
 
+bool is_url(const char *str);
 struct pb_url *pb_url_parse(void *ctx, const char *url_str);
 struct pb_url *pb_url_parse(void *ctx, const char *url_str);
+struct pb_url *pb_url_copy(void *ctx, const struct pb_url *url);
+struct pb_url *pb_url_join(void *ctx, const struct pb_url *url, const char *s);
+char *pb_url_to_string(struct pb_url *url);
 
 const char *pb_url_scheme_name(enum pb_url_scheme scheme);
 
 
 const char *pb_url_scheme_name(enum pb_url_scheme scheme);