diff options
| Commit | 59f1c5d4dbcebc48d1d408dba0be2959d7970167 (patch) | |
|---|---|---|
| Author | 2020-02-04 09:14:42 +0100 | |
| Committer | 2020-02-04 09:14:42 +0100 | |
| Files | 98e92b3ace336ba236e9d5e07c15648d070378c0 /uri.h | |
| goodwolf-0.5.0-rc.1.tar goodwolf-0.5.0-rc.1.tar.gz goodwolf-0.5.0-rc.1.zip | ||
| Parent | 9765887719fd5c3f784d30084111243caf90f16f (diff) | |
| Parent | eb974dcccdbcb35fa067ace053bc1fac7406b768 (diff) | |
Merge branch 'release-0.5' v0.5.0-rc.1
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | uri.h | 17 |
@@ -0,0 +1,17 @@ +#ifndef URI_H_INCLUDED +#define URI_H_INCLUDED +#include <glib.h> + +/* badwolf_ensure_uri_scheme: tries to add a scheme on a pseudo-URL missing a scheme + * - gchar text: pseudo-URL missing a scheme + * - gboolean try_file: when TRUE check try first if it can be a file:// path + * + * When `text` isn't exploitable (ie. NULL), returns "about:blank", + * when the URL seems to be valid, return it, + * if try_file is TRUE, check if it can be file:// path, + * some other checks might be added. + * In the end use the fallback (`http://` for now, might get configuration), + * might get some safeguard. + */ +const gchar *badwolf_ensure_uri_scheme(const gchar *text, gboolean try_file); +#endif /* URI_H_INCLUDED */ |