Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
#define _GNU_SOURCE
#include <assert.h>
-#include <stdbool.h>
#include <string.h>
#include "log/log.h"
return NULL;
}
-static bool is_url(const char *str)
+bool is_url(const char *str)
{
return strstr(str, "://") != NULL;
}
#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.
*/
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);