Skip to content

Commit 9becae0

Browse files
committed
Expose mongoc_uri_parse_host() to other drivers
The PHP driver, for one, relies on this for parsing additional client options (outside of the URI).
1 parent 922b3f6 commit 9becae0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/mongoc/mongoc-uri-private.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ mongoc_uri_append_host ( mongoc_uri_t *uri,
3636
const char *host,
3737
uint16_t port);
3838
bool
39+
mongoc_uri_parse_host ( mongoc_uri_t *uri,
40+
const char *str);
41+
bool
3942
mongoc_uri_set_username ( mongoc_uri_t *uri,
4043
const char *username);
4144
bool

src/mongoc/mongoc-uri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ mongoc_uri_parse_host6 (mongoc_uri_t *uri,
253253
}
254254

255255

256-
static bool
256+
bool
257257
mongoc_uri_parse_host (mongoc_uri_t *uri,
258258
const char *str)
259259
{

0 commit comments

Comments
 (0)