diff options
author | cbdev <cb@cbcdn.com> | 2019-12-22 13:19:37 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-22 13:19:37 +0100 |
commit | a305f5d9b2794315fb536dbe4d4949f1cf26aeea (patch) | |
tree | 1e9180b69347396a0f71e2ca1fb3488c16a01c45 /backends/libmmbackend.h | |
parent | b5d5f26835ea8840fc3aedd38780f3025d2959b3 (diff) | |
parent | 172d8a210f7df36a26b01d2fe018ff4c959a6987 (diff) | |
download | midimonster-a305f5d9b2794315fb536dbe4d4949f1cf26aeea.tar.gz midimonster-a305f5d9b2794315fb536dbe4d4949f1cf26aeea.tar.bz2 midimonster-a305f5d9b2794315fb536dbe4d4949f1cf26aeea.zip |
Merge branch 'master' into rtpmidi
Diffstat (limited to 'backends/libmmbackend.h')
-rw-r--r-- | backends/libmmbackend.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/libmmbackend.h b/backends/libmmbackend.h index 5749119..aa0d0f0 100644 --- a/backends/libmmbackend.h +++ b/backends/libmmbackend.h @@ -22,13 +22,15 @@ /* * Parse spec as host specification in the form - * host port + * host port [options] * into its constituent parts. * Returns offsets into the original string and modifies it. * Returns NULL in *port if none given. * Returns NULL in both *port and *host if spec was an empty string. + * Returns a pointer after the port in *options if options is non-NULL + * and the port was not followed by \0 */ -void mmbackend_parse_hostspec(char* spec, char** host, char** port); +void mmbackend_parse_hostspec(char* spec, char** host, char** port, char** options); /* * Parse a given host / port combination into a sockaddr_storage @@ -92,7 +94,7 @@ size_t json_obj_offset(char* json, char* key); size_t json_array_offset(char* json, uint64_t key); /* - * Check for for a key within a JSON object / index within an array + * Check for a key within a JSON object / index within an array * Assumes a zero-terminated, validated JSON object / array as input * Returns type of value */ |