#ifndef __CURL_CLIENT_H
#define __CURL_CLIENT_H
/***************************************************************************
 *                                  _   _ ____  _
 *  Project                     ___| | | |  _ \| |
 *                             / __| | | | |_) | |
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *
 * Copyright (C) 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution. The terms
 * are also available at http://curl.haxx.se/docs/copyright.html.
 *
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
 * copies of the Software, and permit persons to whom the Software is
 * furnished to do so, under the terms of the COPYING file.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 * $Id: client.h,v 1.13 2004/11/09 14:02:58 giva Exp $
 ***************************************************************************/
#ifdef  __cplusplus
extern "C" {
#endif

/* CURL_HAVE_CLIENT is so a user program can work with both newer and older
   libcurl, using private client objects where available, and falling back
   to the global client object where not.
*/
#define CURL_HAVE_CLIENT 1

typedef void CURLC;

typedef enum {
  CURLC_OK,
  CURLC_BAD_HANDLE,      /* the passed-in handle is not a valid CURLC handle */
} CURLCcode;

CURL_EXTERN CURLC *curl_client_init(void);
CURL_EXTERN CURLCcode curl_client_cleanup(CURLC *client_handle);

CURL_EXTERN void curl_client_use_global_openssl(CURLC *curlc);
CURL_EXTERN void curl_client_use_global_gnutls(CURLC *curlc);
CURL_EXTERN void curl_client_use_global_sock(CURLC *curlc);
CURL_EXTERN void curl_client_use_charset(CURLC *curlc);
CURL_EXTERN bool curl_client_global_openssl_ok(CURLC *curlc);
CURL_EXTERN bool curl_client_global_gnutls_ok(CURLC *curlc);
CURL_EXTERN bool curl_client_global_sock_ok(CURLC *curlc);
CURL_EXTERN bool curl_client_charset_ok(CURLC *curlc);

#ifdef  __cplusplus
}
#endif

#endif
