summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendobexftp-cap-parser.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-02-27 15:06:41 +0000
committerBastien Nocera <hadess@src.gnome.org>2008-02-27 15:06:41 +0000
commit374082f8237276cc901e7f5393fc174a52c6dc31 (patch)
treecfd698c29e363a17dc9b91f2a5f94307d5252865 /daemon/gvfsbackendobexftp-cap-parser.h
parentaef24654f86f1d50d11594393c83d9eeddbd4ee1 (diff)
downloadgvfs-374082f8237276cc901e7f5393fc174a52c6dc31.tar.gz
add test for obex URIs Require expat for the obexftp backend
2008-02-27 Bastien Nocera <hadess@hadess.net> * client/test-uri-utils.c: add test for obex URIs * configure.ac: Require expat for the obexftp backend * daemon/Makefile.am: * daemon/gvfsbackendobexftp-cap-parser.c: * daemon/gvfsbackendobexftp-cap-parser.h: * daemon/gvfsbackendobexftp-fl-parser.c: * daemon/gvfsbackendobexftp-fl-parser.h: Added ObexFTP folder listing and capability parser from gnome-vfs-obexftp, ported to gio * daemon/gvfsbackendobexftp.c: * daemon/gvfsbackendobexftp.h: * daemon/obexftp-marshal.list: * daemon/obexftp.mount.in: Add read-only ObexFTP backend (Closes: #509621) svn path=/trunk/; revision=1406
Diffstat (limited to 'daemon/gvfsbackendobexftp-cap-parser.h')
-rw-r--r--daemon/gvfsbackendobexftp-cap-parser.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/daemon/gvfsbackendobexftp-cap-parser.h b/daemon/gvfsbackendobexftp-cap-parser.h
new file mode 100644
index 00000000..75a7011d
--- /dev/null
+++ b/daemon/gvfsbackendobexftp-cap-parser.h
@@ -0,0 +1,54 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2004 Nokia Corporation.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; version 2 of the
+ * License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __OVU_CAP_PARSER_H__
+#define __OVU_CAP_PARSER_H__
+
+#include <glib.h>
+
+typedef struct _OvuCaps OvuCaps;
+typedef struct _OvuCapsMemory OvuCapsMemory;
+
+OvuCaps * ovu_caps_parser_parse (const gchar *buf,
+ gint len,
+ GError **error);
+
+GList * ovu_caps_get_memory_entries (OvuCaps *caps);
+OvuCapsMemory *ovu_caps_get_memory_type (OvuCaps *caps,
+ const gchar *mem_type);
+void ovu_caps_free (OvuCaps *caps);
+OvuCapsMemory * ovu_caps_memory_new (const gchar *type,
+ goffset free,
+ goffset used,
+ gboolean has_free,
+ gboolean has_used,
+ gboolean case_sensitive);
+void ovu_caps_memory_free (OvuCapsMemory *memory);
+gboolean ovu_caps_memory_equal (OvuCapsMemory *m1,
+ OvuCapsMemory *m2);
+const gchar * ovu_caps_memory_get_type (OvuCapsMemory *memory);
+goffset ovu_caps_memory_get_used (OvuCapsMemory *memory);
+goffset ovu_caps_memory_get_free (OvuCapsMemory *memory);
+gboolean ovu_caps_memory_has_used (OvuCapsMemory *memory);
+gboolean ovu_caps_memory_has_free (OvuCapsMemory *memory);
+gboolean ovu_caps_memory_get_case_sensitive (OvuCapsMemory *memory);
+
+#endif /* __OVU_CAP_PARSER_H__ */
+