]> git.ozlabs.org Git - petitboot/blobdiff - lib/url/url.h
discover/grub2: Allow to separate the --id argument using a space char
[petitboot] / lib / url / url.h
index 40c11645877907d67617c23866799d1c6b3010df..49dff4ac9388827d4fcdd4f33acd91e3fa0bd301 100644 (file)
@@ -19,6 +19,9 @@
 #if !defined(_PB_URL_PARSER_H)
 #define _PB_URL_PARSER_H
 
+#include <arpa/inet.h>
+#include <stdbool.h>
+
 /**
  * enum pb_url_scheme - Enumeration of the URL schemes we can handle.
  */
@@ -58,8 +61,12 @@ struct pb_url {
        char *file;
 };
 
+bool is_url(const char *str);
+int addr_scheme(const char *address);
 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);