]> git.ozlabs.org Git - petitboot/blobdiff - lib/url/url.h
configure: Add check for lex, yacc
[petitboot] / lib / url / url.h
index 997cdcb1333465889a561bf1115449cc51c0c6c0..9043615590c1a7e95e5d938ccc2d0565af994456 100644 (file)
@@ -19,6 +19,8 @@
 #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.
  */
@@ -58,7 +60,9 @@ struct pb_url {
        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_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);