Blame libsoup/soup-requester.h

rpm-build 4f3c61
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
rpm-build 4f3c61
/*
rpm-build 4f3c61
 * Copyright (C) 2010 Igalia S.L.
rpm-build 4f3c61
 *
rpm-build 4f3c61
 * This library is free software; you can redistribute it and/or
rpm-build 4f3c61
 * modify it under the terms of the GNU Library General Public
rpm-build 4f3c61
 * License as published by the Free Software Foundation; either
rpm-build 4f3c61
 * version 2 of the License, or (at your option) any later version.
rpm-build 4f3c61
 *
rpm-build 4f3c61
 * This library is distributed in the hope that it will be useful,
rpm-build 4f3c61
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 4f3c61
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 4f3c61
 * Library General Public License for more details.
rpm-build 4f3c61
 *
rpm-build 4f3c61
 * You should have received a copy of the GNU Library General Public License
rpm-build 4f3c61
 * along with this library; see the file COPYING.LIB.  If not, write to
rpm-build 4f3c61
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
rpm-build 4f3c61
 * Boston, MA 02110-1301, USA.
rpm-build 4f3c61
 */
rpm-build 4f3c61
rpm-build 4f3c61
#ifndef SOUP_REQUESTER_H
rpm-build 4f3c61
#define SOUP_REQUESTER_H 1
rpm-build 4f3c61
rpm-build 4f3c61
#ifdef LIBSOUP_USE_UNSTABLE_REQUEST_API
rpm-build 4f3c61
rpm-build 4f3c61
#include <libsoup/soup-types.h>
rpm-build 4f3c61
rpm-build 4f3c61
G_BEGIN_DECLS
rpm-build 4f3c61
rpm-build 4f3c61
#define SOUP_TYPE_REQUESTER            (soup_requester_get_type ())
rpm-build 4f3c61
#define SOUP_REQUESTER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_REQUESTER, SoupRequester))
rpm-build 4f3c61
#define SOUP_REQUESTER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_REQUESTER, SoupRequesterClass))
rpm-build 4f3c61
#define SOUP_IS_REQUESTER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_REQUESTER))
rpm-build 4f3c61
#define SOUP_IS_REQUESTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_REQUESTER))
rpm-build 4f3c61
#define SOUP_REQUESTER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_REQUESTER, SoupRequesterClass))
rpm-build 4f3c61
rpm-build 4f3c61
typedef struct _SoupRequester SoupRequester;
rpm-build 4f3c61
typedef struct _SoupRequesterPrivate SoupRequesterPrivate;
rpm-build 4f3c61
rpm-build 4f3c61
struct _SoupRequester {
rpm-build 4f3c61
	GObject parent;
rpm-build 4f3c61
rpm-build 4f3c61
	SoupRequesterPrivate *priv;
rpm-build 4f3c61
};
rpm-build 4f3c61
rpm-build 4f3c61
typedef struct {
rpm-build 4f3c61
	GObjectClass parent_class;
rpm-build 4f3c61
} SoupRequesterClass;
rpm-build 4f3c61
rpm-build 4f3c61
SOUP_AVAILABLE_IN_2_34
rpm-build 4f3c61
SOUP_DEPRECATED_IN_2_42
rpm-build 4f3c61
GType          soup_requester_get_type        (void);
rpm-build 4f3c61
rpm-build 4f3c61
SOUP_AVAILABLE_IN_2_34
rpm-build 4f3c61
SOUP_DEPRECATED_IN_2_42
rpm-build 4f3c61
SoupRequester *soup_requester_new             (void);
rpm-build 4f3c61
rpm-build 4f3c61
SOUP_AVAILABLE_IN_2_34
rpm-build 4f3c61
SOUP_DEPRECATED_IN_2_42_FOR(soup_session_request)
rpm-build 4f3c61
SoupRequest   *soup_requester_request         (SoupRequester  *requester,
rpm-build 4f3c61
					       const char     *uri_string,
rpm-build 4f3c61
					       GError        **error);
rpm-build 4f3c61
rpm-build 4f3c61
SOUP_AVAILABLE_IN_2_34
rpm-build 4f3c61
SOUP_DEPRECATED_IN_2_42_FOR(soup_session_request_uri)
rpm-build 4f3c61
SoupRequest   *soup_requester_request_uri     (SoupRequester  *requester,
rpm-build 4f3c61
					       SoupURI        *uri,
rpm-build 4f3c61
					       GError        **error);
rpm-build 4f3c61
rpm-build 4f3c61
SOUP_AVAILABLE_IN_2_34
rpm-build 4f3c61
SOUP_DEPRECATED_IN_2_42_FOR(SOUP_REQUEST_ERROR)
rpm-build 4f3c61
GQuark soup_requester_error_quark (void);
rpm-build 4f3c61
#define SOUP_REQUESTER_ERROR soup_requester_error_quark ()
rpm-build 4f3c61
rpm-build 4f3c61
typedef enum {
rpm-build 4f3c61
	SOUP_REQUESTER_ERROR_BAD_URI,
rpm-build 4f3c61
	SOUP_REQUESTER_ERROR_UNSUPPORTED_URI_SCHEME
rpm-build 4f3c61
} SoupRequesterError;
rpm-build 4f3c61
rpm-build 4f3c61
G_END_DECLS
rpm-build 4f3c61
rpm-build 4f3c61
#endif /* LIBSOUP_USE_UNSTABLE_REQUEST_API */
rpm-build 4f3c61
rpm-build 4f3c61
#endif /* SOUP_REQUESTER_H */