summaryrefslogtreecommitdiff
path: root/libsoup/soup-queue.h
blob: 0def1f4460d1b3de8b2a2f6d47039c3d95e32f71 (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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * soup-queue.h: Asyncronous Callback-based HTTP Request Queue.
 *
 * Authors:
 *      Alex Graveley (alex@ximian.com)
 *
 * Copyright (C) 2001, Ximian, Inc.
 */

#ifndef SOUP_QUEUE_H
#define SOUP_QUEUE_H 1

#include <glib.h>

#include <libsoup/soup-message.h>

void         soup_queue_message        (SoupMessage          *req,
					SoupCallbackFn        callback, 
					gpointer              user_data);

void         soup_queue_connect_cb     (SoupContext          *ctx,
					SoupConnectErrorCode  err,
					SoupConnection       *conn,
					gpointer              user_data);

void         soup_queue_add_request    (SoupMessage          *req);
void         soup_queue_remove_request (SoupMessage          *req);
SoupMessage *soup_queue_first_request  (void);
SoupMessage *soup_queue_next_request   (void);

void         soup_queue_shutdown       (void);

#endif /* SOUP_QUEUE_H */