aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-26 13:03:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-26 13:03:22 +0000
commit9247daf953bb48d19948199feb12b0031f825fa0 (patch)
tree4880ca21302e1ff1b4ed61001f314f58aba1f5f0 /include
parent9031e33b66bcc9f1fb51a3e7542904110429d442 (diff)
enhanced curl_version_info
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index de1e5aeb2..e5ba70379 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -916,29 +916,25 @@ 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 */
+ const char *host; /* OS/host/cpu/machine when configured */
int features; /* bitmask, see defines below */
char *ssl_version; /* human readable string */
long ssl_version_num; /* number */
- char *libz_version; /* human readable string */
+ const char *libz_version; /* human readable string */
/* protocols is terminated by an entry with a NULL protoname */
- const curl_runtime_protocol_info *protocols;
+ const char *protocols[1];
} curl_version_info_data;
#define CURL_VERSION_IPV6 (1<<0)
#define CURL_VERSION_KERBEROS4 (1<<1)
+#define CURL_VERSION_SSL (1<<2)
+#define CURL_VERSION_LIBZ (1<<3)
/* returns a pointer to a static copy of the version info struct */
-const curl_version_info_data *curl_version_info(void);
+curl_version_info_data *curl_version_info(void);
#ifdef __cplusplus
}