diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-25 02:01:24 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-25 02:01:24 +0200 |
commit | c847de255c815a335473f493722132c365642c25 (patch) | |
tree | 8a8614e5c0559311c3a503b752b1f8137b48a534 | |
parent | libmdsclient: add message composing function (diff) | |
download | mds-c847de255c815a335473f493722132c365642c25.tar.gz mds-c847de255c815a335473f493722132c365642c25.tar.bz2 mds-c847de255c815a335473f493722132c365642c25.tar.xz |
libmdsclient: add identity macros for optimisation functions that may or may not disappear in the future, and may or may not get alternatives, this way it programmer can use them if they are available and full back to the regular function otherwise
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libmdsclient/proto-util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libmdsclient/proto-util.h b/src/libmdsclient/proto-util.h index fb8ba53..61c4b2a 100644 --- a/src/libmdsclient/proto-util.h +++ b/src/libmdsclient/proto-util.h @@ -131,6 +131,7 @@ int libmds_headers_cherrypick(char** restrict headers, size_t header_count, size * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_linear_unsorted(char** restrict headers, size_t header_count, ...); +#define libmds_headers_cherrypick_linear_unsorted libmds_headers_cherrypick_linear_unsorted /** * Cherrypick headers from a message, @@ -153,6 +154,7 @@ size_t libmds_headers_cherrypick_linear_unsorted(char** restrict headers, size_t * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_linear_sorted(char** restrict headers, size_t header_count, ...); +#define libmds_headers_cherrypick_linear_sorted libmds_headers_cherrypick_linear_sorted /** * Cherrypick headers from a message, @@ -173,6 +175,7 @@ size_t libmds_headers_cherrypick_linear_sorted(char** restrict headers, size_t h * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_binary_unsorted(char** restrict headers, size_t header_count, ...); +#define libmds_headers_cherrypick_binary_unsorted libmds_headers_cherrypick_binary_unsorted /** * Cherrypick headers from a message, @@ -194,6 +197,7 @@ size_t libmds_headers_cherrypick_binary_unsorted(char** restrict headers, size_t * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_binary_sorted(char** restrict headers, size_t header_count, ...); +#define libmds_headers_cherrypick_binary_unsorted libmds_headers_cherrypick_binary_unsorted /** * Cherrypick headers from a message @@ -241,6 +245,7 @@ int libmds_headers_cherrypick_v(char** restrict headers, size_t header_count, si * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_linear_unsorted_v(char** restrict headers, size_t header_count, va_list args); +#define libmds_headers_cherrypick_linear_unsorted_v libmds_headers_cherrypick_linear_unsorted_v /** * Cherrypick headers from a message, @@ -263,6 +268,7 @@ size_t libmds_headers_cherrypick_linear_unsorted_v(char** restrict headers, size * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_linear_sorted_v(char** restrict headers, size_t header_count, va_list args); +#define libmds_headers_cherrypick_linear_sorted_v libmds_headers_cherrypick_linear_sorted_v /** * Cherrypick headers from a message, @@ -283,6 +289,7 @@ size_t libmds_headers_cherrypick_linear_sorted_v(char** restrict headers, size_t * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_binary_unsorted_v(char** restrict headers, size_t header_count, va_list args); +#define libmds_headers_cherrypick_binary_unsorted_v libmds_headers_cherrypick_binary_unsorted_v /** * Cherrypick headers from a message, @@ -304,6 +311,7 @@ size_t libmds_headers_cherrypick_binary_unsorted_v(char** restrict headers, size * @return The number of found headers of those that were requested */ size_t libmds_headers_cherrypick_binary_sorted_v(char** restrict headers, size_t header_count, va_list args); +#define libmds_headers_cherrypick_binary_sorted_v libmds_headers_cherrypick_binary_sorted_v /** * Sort the a header array, this is what `libmds_headers_cherrypick` |