diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/corestrings.h | 6 | ||||
-rw-r--r-- | utils/url.h | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/utils/corestrings.h b/utils/corestrings.h index 9fcc224ee..b55852900 100644 --- a/utils/corestrings.h +++ b/utils/corestrings.h @@ -27,6 +27,12 @@ #include "utils/nsurl.h" #include "utils/errors.h" +/** File url prefix. */ +#define FILE_SCHEME_PREFIX "file:///" + +/** File url prefix length. */ +#define FILE_SCHEME_PREFIX_LEN 8 + nserror corestrings_init(void); void corestrings_fini(void); diff --git a/utils/url.h b/utils/url.h index 143a0a0fe..aafdf1e15 100644 --- a/utils/url.h +++ b/utils/url.h @@ -27,12 +27,6 @@ #include "utils/errors.h" -/** File url prefix. */ -#define FILE_SCHEME_PREFIX "file:///" - -/** File url prefix length. */ -#define FILE_SCHEME_PREFIX_LEN 8 - /** * Escape a string suitable for inclusion in an URL. @@ -44,7 +38,8 @@ * \param result pointer to pointer to buffer to hold escaped string * \return NSERROR_OK on success */ -nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus, const char *escexceptions, char **result); +nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus, + const char *escexceptions, char **result); /** |