1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * Copyright (C) 2000-2003, Ximian, Inc. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef SOUP_SERVER_MESSAGE_H |
---|
7 | #define SOUP_SERVER_MESSAGE_H 1 |
---|
8 | |
---|
9 | #include <libsoup/soup-message.h> |
---|
10 | |
---|
11 | #define SOUP_TYPE_SERVER_MESSAGE (soup_server_message_get_type ()) |
---|
12 | #define SOUP_SERVER_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_SERVER_MESSAGE, SoupServerMessage)) |
---|
13 | #define SOUP_SERVER_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_SERVER_MESSAGE, SoupServerMessageClass)) |
---|
14 | #define SOUP_IS_SERVER_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_SERVER_MESSAGE)) |
---|
15 | #define SOUP_IS_SERVER_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_SERVER_MESSAGE)) |
---|
16 | #define SOUP_SERVER_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_SERVER_MESSAGE, SoupServerMessageClass)) |
---|
17 | |
---|
18 | typedef struct SoupServerMessagePrivate SoupServerMessagePrivate; |
---|
19 | |
---|
20 | struct SoupServerMessage { |
---|
21 | SoupMessage parent; |
---|
22 | |
---|
23 | SoupServerMessagePrivate *priv; |
---|
24 | }; |
---|
25 | |
---|
26 | typedef struct { |
---|
27 | SoupMessageClass parent_class; |
---|
28 | |
---|
29 | } SoupServerMessageClass; |
---|
30 | |
---|
31 | GType soup_server_message_get_type (void); |
---|
32 | |
---|
33 | |
---|
34 | SoupServerMessage *soup_server_message_new (SoupServer *server); |
---|
35 | |
---|
36 | SoupServer *soup_server_message_get_server (SoupServerMessage *smsg); |
---|
37 | |
---|
38 | void soup_server_message_set_encoding (SoupServerMessage *smsg, |
---|
39 | SoupTransferEncoding encoding); |
---|
40 | SoupTransferEncoding soup_server_message_get_encoding (SoupServerMessage *smsg); |
---|
41 | |
---|
42 | void soup_server_message_start (SoupServerMessage *smsg); |
---|
43 | gboolean soup_server_message_is_started (SoupServerMessage *smsg); |
---|
44 | |
---|
45 | void soup_server_message_finish (SoupServerMessage *smsg); |
---|
46 | gboolean soup_server_message_is_finished (SoupServerMessage *smsg); |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | #endif /* SOUP_SERVER_H */ |
---|