[gvfs] http: Add http_backend_get_mount_base ()
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] http: Add http_backend_get_mount_base ()
- Date: Sat, 14 May 2011 10:15:27 +0000 (UTC)
commit 0b1c22f8a380cf377c1e574616a770cb39370588
Author: Christian Kellner <gicmo gnome org>
Date: Thu May 12 16:13:33 2011 +0200
http: Add http_backend_get_mount_base ()
http_backend_get_mount_base () retrieves the URL of the backends
"mount point". URL must not bee freed.
daemon/gvfsbackendhttp.c | 6 ++++++
daemon/gvfsbackendhttp.h | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index d983b59..79e3c46 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -138,6 +138,12 @@ g_vfs_backend_http_init (GVfsBackendHttp *backend)
/* public utility functions */
SoupURI *
+http_backend_get_mount_base (GVfsBackend *backend)
+{
+ return G_VFS_BACKEND_HTTP (backend)->mount_base;
+}
+
+SoupURI *
http_backend_uri_for_filename (GVfsBackend *backend,
const char *filename,
gboolean is_dir)
diff --git a/daemon/gvfsbackendhttp.h b/daemon/gvfsbackendhttp.h
index 19df3a0..b83a1f6 100644
--- a/daemon/gvfsbackendhttp.h
+++ b/daemon/gvfsbackendhttp.h
@@ -66,6 +66,8 @@ char * http_uri_get_basename (const char *uri_str);
guint http_error_code_from_status (guint status);
+SoupURI * http_backend_get_mount_base (GVfsBackend *backend);
+
guint http_backend_send_message (GVfsBackend *backend,
SoupMessage *msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]