Blame src/quvi-0.9/quvi/qoption.h

Packit 3ff1e7
/* libquvi
Packit 3ff1e7
 * Copyright (C) 2012,2013  Toni Gundogdu <legatvs@gmail.com>
Packit 3ff1e7
 *
Packit 3ff1e7
 * This file is part of libquvi <http://quvi.sourceforge.net/>.
Packit 3ff1e7
 *
Packit 3ff1e7
 * This library is free software: you can redistribute it and/or
Packit 3ff1e7
 * modify it under the terms of the GNU Affero General Public
Packit 3ff1e7
 * License as published by the Free Software Foundation, either
Packit 3ff1e7
 * version 3 of the License, or (at your option) any later version.
Packit 3ff1e7
 *
Packit 3ff1e7
 * This library is distributed in the hope that it will be useful,
Packit 3ff1e7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 3ff1e7
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 3ff1e7
 * GNU Affero General Public License for more details.
Packit 3ff1e7
 *
Packit 3ff1e7
 * You should have received a copy of the GNU Affero General
Packit 3ff1e7
 * Public License along with this library.  If not, see
Packit 3ff1e7
 * <http://www.gnu.org/licenses/>.
Packit 3ff1e7
 */
Packit 3ff1e7
Packit 3ff1e7
#ifndef qoption_h
Packit 3ff1e7
#define qoption_h
Packit 3ff1e7
Packit 3ff1e7
/** @file qoption.h */
Packit 3ff1e7
Packit 3ff1e7
/** @enum QuviOption
Packit 3ff1e7
@brief Options to be used with @ref quvi_set */
Packit 3ff1e7
typedef enum
Packit 3ff1e7
{
Packit 3ff1e7
  /** Default: None */
Packit 3ff1e7
  QUVI_OPTION_CALLBACK_STATUS,
Packit 3ff1e7
  /** Default: None */
Packit 3ff1e7
  QUVI_OPTION_CALLBACK_STATUS_USERDATA,
Packit 3ff1e7
  /** Enable cookies for libcurl handle.
Packit 3ff1e7
   * Default: QUVI_FALSE. When enabled (QUVI_TRUE), libcurl will
Packit 3ff1e7
   * parse the received cookies and use them in the subsequent HTTP
Packit 3ff1e7
   * requests.
Packit 3ff1e7
   * @note
Packit 3ff1e7
   *  When disabled, quvi.http.cookie (of the quvi-object(7)) is also
Packit 3ff1e7
   *  disabled
Packit 3ff1e7
   * @sa
Packit 3ff1e7
   * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIEFILE
Packit 3ff1e7
   * @sa
Packit 3ff1e7
   * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIELIST
Packit 3ff1e7
   * @sa
Packit 3ff1e7
   * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCOOKIEJAR
Packit 3ff1e7
   */
Packit 3ff1e7
  QUVI_OPTION_ALLOW_COOKIES,
Packit 3ff1e7
  /** Identify as the user-agent to the HTTP servers.
Packit 3ff1e7
   * Default: "Mozilla/5.0".
Packit 3ff1e7
   * @note
Packit 3ff1e7
   *    libquvi scripts may override this setting at any time. The
Packit 3ff1e7
   *    original value set using this option will be restored each time
Packit 3ff1e7
   *    the network accessing functions are called, e.g.
Packit 3ff1e7
   *    quvi.http.fetch
Packit 3ff1e7
   * @sa http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTUSERAGENT
Packit 3ff1e7
   */
Packit 3ff1e7
  QUVI_OPTION_USER_AGENT,
Packit 3ff1e7
  /** Autodetect and set the proxy for new connections.
Packit 3ff1e7
   * Default: QUVI_FALSE. When enabled (QUVI_TRUE), libquvi uses libproxy
Packit 3ff1e7
   * to detect the system proxy settings and sets the CURLOPT_PROXY to the
Packit 3ff1e7
   * libproxy returned value. This is done for each new connection.
Packit 3ff1e7
   * @sa http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXY
Packit 3ff1e7
   * @sa http://libproxy.googlecode.com/
Packit 3ff1e7
   */
Packit 3ff1e7
  QUVI_OPTION_AUTOPROXY
Packit 3ff1e7
} QuviOption;
Packit 3ff1e7
Packit 3ff1e7
#endif /* qoption_h */
Packit 3ff1e7
Packit 3ff1e7
/* vim: set ts=2 sw=2 tw=72 expandtab: */