global_init() takes a flag option now, to tell libcurl what _not_ to init.

it will make it better when the application uses several libs that use
openssl and it also enables us to do the win32 winsock initing in the future
if we want to
This commit is contained in:
Daniel Stenberg
2001-05-28 15:30:38 +00:00
parent ce0e2cc017
commit f44f512f24
2 changed files with 15 additions and 2 deletions

View File

@@ -492,8 +492,18 @@ char *curl_version(void);
char *curl_escape(char *string, int length);
char *curl_unescape(char *string, int length);
/* curl_global_init() should be invoked exactly once for each application that
uses libcurl */
CURLcode curl_global_init(long flags);
/* curl_global_cleanup() should be invoked exactly once for each application
that uses libcurl */
void curl_global_cleanup(void);
/* This is the version number */
#define LIBCURL_VERSION "7.7.4-pre2"
#define LIBCURL_VERSION "7.7.4-pre3"
#define LIBCURL_VERSION_NUM 0x070704
/* linked-list structure for the CURLOPT_QUOTE option (and other) */