summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendhttp.h
diff options
context:
space:
mode:
authorChristian Kellner <gicmo@gnome.org>2008-03-03 21:01:13 +0000
committerChristian Kellner <gicmo@src.gnome.org>2008-03-03 21:01:13 +0000
commit0f0b379a3acc653caf6bf2091c72e14ef8085c76 (patch)
tree37810fb0f3d327b4f0e7c01a5602235a3e580016 /daemon/gvfsbackendhttp.h
parent958b2491f3f400517dfa0fdacf23639d1ca67937 (diff)
downloadgvfs-0f0b379a3acc653caf6bf2091c72e14ef8085c76.tar.gz
Remove unecessary message_new_from_xxx functions. Prefix all public
2008-03-03 Christian Kellner <gicmo@gnome.org> * daemon/gvfsbackendhttp.c: * daemon/gvfsbackendhttp.h: Remove unecessary message_new_from_xxx functions. Prefix all public utility functions that need the backend with http_backend_, i.e. rename g_vfs_backend_uri_for_filename() to http_backend_uri_for_filename(). Create http_backend_send_message(), http_backend_queue_message() convenience functions which will pick up the right SoupSession. * daemon/gvfsbackenddav.c: Port to new utility functions and http_backend_xx namespace. Clean up error handling and remove the const keyword from most SoupURI variables. svn path=/trunk/; revision=1515
Diffstat (limited to 'daemon/gvfsbackendhttp.h')
-rw-r--r--daemon/gvfsbackendhttp.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/daemon/gvfsbackendhttp.h b/daemon/gvfsbackendhttp.h
index 8e0b8961..c75e1eed 100644
--- a/daemon/gvfsbackendhttp.h
+++ b/daemon/gvfsbackendhttp.h
@@ -55,24 +55,24 @@ struct _GVfsBackendHttp
};
GType g_vfs_backend_http_get_type (void) G_GNUC_CONST;
-SoupURI * g_vfs_backend_uri_for_filename (GVfsBackend *backend,
+
+SoupURI * http_backend_uri_for_filename (GVfsBackend *backend,
const char *filename,
gboolean is_dir);
-SoupMessage * message_new_from_filename_full (GVfsBackend *backend,
- const char *method,
- const char *filename,
- gboolean is_dir);
-SoupMessage * message_new_from_filename (GVfsBackend *backend,
- const char *method,
- const char *filename);
-SoupMessage * message_new_from_uri (const char *method,
- SoupURI *uri);
-char * uri_get_basename (const char *uri_str);
+char * http_uri_get_basename (const char *uri_str);
guint http_error_code_from_status (guint status);
+guint http_backend_send_message (GVfsBackend *backend,
+ SoupMessage *msg);
+
+void http_backend_queue_message (GVfsBackend *backend,
+ SoupMessage *msg,
+ SoupSessionCallback callback,
+ gpointer user_data);
+
G_END_DECLS
#endif /* __G_VFS_BACKEND_HTTP_H__ */