#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(long flags);

/* Flag masks for 'flags' argument to curl_client_init() */

/* Each of these says client may use the indicated process global
   facility, and implies that said facility has been set up as required.
*/
#define CURL_CLIENT_GLOBAL_OPENSSL (1 << 0)
#define CURL_CLIENT_GLOBAL_GNUTLS (1 << 1)
#define CURL_CLIENT_GLOBAL_WINSOCK (1 << 2)
#define CURL_CLIENT_GLOBAL_AMIGASOCK (1 << 3)
#define CURL_CLIENT_GLOBAL_CHARSET (1 << 4)


CURL_EXTERN CURLCcode curl_client_cleanup(CURLC *client_handle);

#ifdef  __cplusplus
}
#endif

#endif
