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_SESSION_PRIVATE_H__ 7 #define __SOUP_SESSION_PRIVATE_H__ 1 8 9 #include "soup-session.h" 10 #include "soup-message-private.h" 11 #include "soup-proxy-uri-resolver.h" 12 13 G_BEGIN_DECLS 14 15 /* "protected" methods for subclasses */ 16 SoupMessageQueue *soup_session_get_queue (SoupSession *session); 17 18 SoupMessageQueueItem *soup_session_append_queue_item (SoupSession *session, 19 SoupMessage *msg, 20 gboolean async, 21 gboolean new_api, 22 SoupSessionCallback callback, 23 gpointer user_data); 24 25 void soup_session_kick_queue (SoupSession *session); 26 27 GInputStream *soup_session_send_request (SoupSession *session, 28 SoupMessage *msg, 29 GCancellable *cancellable, 30 GError **error); 31 32 void soup_session_send_request_async (SoupSession *session, 33 SoupMessage *msg, 34 GCancellable *cancellable, 35 GAsyncReadyCallback callback, 36 gpointer user_data); 37 GInputStream *soup_session_send_request_finish (SoupSession *session, 38 GAsyncResult *result, 39 GError **error); 40 41 void soup_session_process_queue_item (SoupSession *session, 42 SoupMessageQueueItem *item, 43 gboolean *should_prune, 44 gboolean loop); 45 46 G_END_DECLS 47 48 #endif /* __SOUP_SESSION_PRIVATE_H__ */ 49