diff options
author | Dan Winship <danw@src.gnome.org> | 2003-09-10 18:14:19 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-09-10 18:14:19 +0000 |
commit | 2463bf785d9c995ba3662dd57aabfad0b25c2e9d (patch) | |
tree | b192d331ae7f2afc107d63f09312c2e7e832dcb2 /libsoup/soup-message-private.h | |
parent | 1dc7f62613ce0bf9fbb2d04f05aa62b874278ebb (diff) | |
download | libsoup-2463bf785d9c995ba3662dd57aabfad0b25c2e9d.tar.gz |
Remove the "status" field from here, since it's mostly used by
* libsoup/soup-message-private.h (SoupMessagePrivate): Remove the
"status" field from here, since it's mostly used by SoupSession,
which shouldn't need access to SoupMessagePrivate.
* libsoup/soup-message.h (SoupMessage): Move it here.
(SoupCallbackFn): Remove this alias for SoupMessageCallbackFn.
(soup_message_set_uri): also moved from soup-message-private.h
* libsoup/soup-message.c: s/msg->priv->status/msg->status/.
* libsoup/soup-message-handlers.c:
s/SoupCallbackFn/SoupMessageCallbackFn/ everywhere.
* libsoup/soup-message-io.c (soup_message_io_client,
soup_message_io_server, soup_message_io_unpause): Don't set up an
idle handler, just jump right in to reading/writing; if this is a
synchronous socket, then the caller wants to block, and if it's
not, then we'll quickly get an EAGAIN anyway.
* libsoup/soup-session.c: (queue_message): Likewise.
(*) Update for SoupMessageStatus move and remove
soup-message-private.h include.
* libsoup/soup-server-message.c: Remove soup-message-private.h
include.
* libsoup/soup-server.c: Likewise.
* libsoup/soup-connection.c (soup_connection_is_connected,
soup_connection_is_new): Remove these, since they weren't being
used.
* libsoup/soup-md5-utils.c: Moved from md5-utils.c and renamed, to
avoid namespace pollution.
* libsoup/soup-auth-digest.c: Update for that.
* libsoup/soup-server-auth.c: Likewise
* tests/auth-test.c: Remove soup-message-private.h include
Diffstat (limited to 'libsoup/soup-message-private.h')
-rw-r--r-- | libsoup/soup-message-private.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libsoup/soup-message-private.h b/libsoup/soup-message-private.h index cff4702d..6782acb4 100644 --- a/libsoup/soup-message-private.h +++ b/libsoup/soup-message-private.h @@ -8,19 +8,7 @@ #include <libsoup/soup-message.h> -typedef enum { - SOUP_MESSAGE_STATUS_IDLE, - SOUP_MESSAGE_STATUS_QUEUED, - SOUP_MESSAGE_STATUS_CONNECTING, - SOUP_MESSAGE_STATUS_RUNNING, - SOUP_MESSAGE_STATUS_FINISHED, -} SoupMessageStatus; - -#define SOUP_MESSAGE_IS_STARTING(msg) (msg->priv->status == SOUP_MESSAGE_STATUS_QUEUED || msg->priv->status == SOUP_MESSAGE_STATUS_CONNECTING) - struct SoupMessagePrivate { - SoupMessageStatus status; - gpointer io_data; guint msg_flags; @@ -41,9 +29,6 @@ void soup_message_cleanup (SoupMessage *req); gboolean soup_message_is_keepalive (SoupMessage *msg); -void soup_message_set_uri (SoupMessage *msg, - const SoupUri *uri); - typedef void (*SoupMessageGetHeadersFn) (SoupMessage *msg, GString *headers, |