summaryrefslogtreecommitdiffstats
path: root/lib/url/url.h
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2013-10-28 12:45:08 +0530
committerJeremy Kerr <jk@ozlabs.org>2013-11-06 16:34:26 +0800
commitf385e8cacbc574e213b0805a8d383373f29a8058 (patch)
tree29d496cd73bed397ddf7e09db507f9c874b8da80 /lib/url/url.h
parent1cb9c56d6453bca28cacb5ab3fc134bb151fd6f0 (diff)
downloadtalos-petitboot-f385e8cacbc574e213b0805a8d383373f29a8058.tar.gz
talos-petitboot-f385e8cacbc574e213b0805a8d383373f29a8058.zip
lib/url: Export is_url() function
Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/url/url.h')
-rw-r--r--lib/url/url.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/url/url.h b/lib/url/url.h
index 997cdcb..25e1ad8 100644
--- a/lib/url/url.h
+++ b/lib/url/url.h
@@ -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,6 +60,7 @@ 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_join(void *ctx, const struct pb_url *url, const char *s);
char *pb_url_to_string(struct pb_url *url);
OpenPOWER on IntegriCloud