cURL
Haxx ad
libcurl
Automatically get a mirror near you





COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software
Online collaboration software

SourceForge.net Logo

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

curl_version_info() take 2

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 25 Sep 2002 17:38:10 +0200 (MET DST)

Ok, this is my take on extending Wez Furlong's idea/code/API.

I haven't yet decided if we really should proceed with returning a struct or
if we should instead go with a function that takes an option and returns info
for that particular option...

Any opinions?

/****************************************************************************
 * 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 */
  int features; /* bitmask, see defines below */
  char *ssl_version; /* human readable string */
  long ssl_version_num; /* number */
  char *libz_version; /* human readable string */
  /* protocols is terminated by an entry with a NULL protoname */
  const curl_runtime_protocol_info *protocols;
} curl_version_info_data;

#define CURL_VERSION_IPV6 (1<<0)
#define CURL_VERSION_KERBEROS4 (1<<1)

/* returns a pointer to a static copy of the version info struct */
const curl_version_info_data *curl_version_info(void);

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-25

These mail archives are generated by hypermail.

donate! Page updated October 16, 2006.
web site info