diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-09-25 07:08:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-09-25 07:08:41 +0000 |
commit | c0460660d5a0c8f2be98adf79d2f27b5fa8f707a (patch) | |
tree | 8c9c485f1996a9dadc431ca633fee23b5f402629 /include | |
parent | b03f4919fb71e250e9b3cd991c37de31d0bbe093 (diff) |
Wez Furlong's curl_version_info() function added, still needs some
adjustments and possibly some improvments to feature all those things we
could possibly want from this.
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index e4b63430a..65deb5247 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -909,6 +909,27 @@ CURLcode curl_share_set_unlock_function (curl_share *, curl_unlock_function); CURLcode curl_share_set_lock_data (curl_share *, void *); CURLcode curl_share_destroy (curl_share *); +/**************************************************************************** + * Structures for querying information about the curl library at runtime. + */ + +/* declared as a struct to allow future expansion while remaining backwards + * and binary compatible; any new fields in these two structs must be added + * after the existing fields */ +typedef struct { + const char *protoname; +} curl_runtime_protocol_info; + +typedef struct { + const char *version; /* LIBCURL_VERSION */ + unsigned int version_num; /* LIBCURL_VERSION_NUM */ + /* protocols is terminated by an entry with a NULL protoname */ + curl_runtime_protocol_info *protocols; +} curl_version_info_data; + +/* returns a pointer to a static copy of the version info struct */ +const curl_version_info_data *curl_version_info(void); + #ifdef __cplusplus } #endif |