diff options
author | Stefan Eissing <icing@apache.org> | 2015-08-17 14:45:57 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2015-08-17 14:45:57 +0200 |
commit | d0ca4ab131ef9c00d3c3e6515b309f12dd8e5359 (patch) | |
tree | dc1b12b5d4752d7d3102b5b37eb4edc71c6aa860 /include | |
parent | Rebuild. (diff) | |
download | apache2-d0ca4ab131ef9c00d3c3e6515b309f12dd8e5359.tar.xz apache2-d0ca4ab131ef9c00d3c3e6515b309f12dd8e5359.zip |
introducing ap_array_index in util, used in protocol and mod_h2
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696264 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/httpd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/httpd.h b/include/httpd.h index 285b76b821..d68db185c4 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -2402,6 +2402,14 @@ AP_DECLARE(char *) ap_get_exec_line(apr_pool_t *p, #define AP_NORESTART APR_OS_START_USEERR + 1 +/** + * Get the index of the string in the array or -1 if not found. + * @param array the array the check + * @param s the string to find + * @return index of string in array or -1 + */ +AP_DECLARE(int) ap_array_index(apr_array_header_t *array, const char *s); + #ifdef __cplusplus } #endif |