Skip to content

Commit

Permalink
uri-util: Made uri_data_encode() public.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and GitLab committed May 16, 2016
1 parent af53c05 commit e4e9ba5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/uri-util.c
Expand Up @@ -1033,9 +1033,10 @@ void uri_host_copy(pool_t pool, struct uri_host *dest,
* Generic URI construction
*/

static void
uri_data_encode(string_t *out, const unsigned char esc_table[256],
unsigned char esc_mask, const char *esc_extra, const char *data)
void uri_data_encode(string_t *out,
const unsigned char esc_table[256],
unsigned char esc_mask, const char *esc_extra,
const char *data)
{
const unsigned char *pbegin, *p;

Expand Down
5 changes: 5 additions & 0 deletions src/lib/uri-util.h
Expand Up @@ -81,6 +81,11 @@ void uri_host_copy(pool_t pool, struct uri_host *dest,
* Generic URI construction
*/

void uri_data_encode(string_t *out,
const unsigned char esc_table[256],
unsigned char esc_mask, const char *esc_extra,
const char *data);

void uri_append_scheme(string_t *out, const char *scheme);

void uri_append_user_data(string_t *out, const char *esc, const char *data);
Expand Down

0 comments on commit e4e9ba5

Please sign in to comment.