blob: 5e1b57fbf72417856e98560cc08b1d44d11cbb48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* soup-context.h: Asyncronous Callback-based HTTP Request Queue.
*
* Authors:
* Alex Graveley (alex@ximian.com)
*
* Copyright (C) 2000-2002, Ximian, Inc.
*/
#ifndef SOUP_CONTEXT_H
#define SOUP_CONTEXT_H 1
#include <libsoup/soup-error.h>
#include <libsoup/soup-types.h>
#include <libsoup/soup-uri.h>
typedef void (*SoupContextConnectFn) (SoupContext *ctx,
SoupKnownErrorCode err,
SoupConnection *conn,
gpointer user_data);
SoupContext *soup_context_get (const char *uri);
SoupContext *soup_context_from_uri (SoupUri *suri);
void soup_context_ref (SoupContext *ctx);
void soup_context_unref (SoupContext *ctx);
SoupConnectId soup_context_get_connection (SoupContext *ctx,
SoupContextConnectFn cb,
gpointer user_data);
void soup_context_cancel_connect (SoupConnectId tag);
const SoupUri *soup_context_get_uri (SoupContext *ctx);
#endif /*SOUP_CONTEXT_H*/
|