summaryrefslogtreecommitdiff
path: root/client/gdaemonvfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch from David ZeuthenAlexander Larsson2008-10-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-21 Alexander Larsson <alexl@redhat.com> Patch from David Zeuthen * common/Makefile.am: * common/gvfsicon.[ch]: Added GVfsIcon object for GVfs backend specific icons. * common/gmountspec.[ch]: Make sure to/from string works correctly to roundtrip GMountSpec:s Make GMountSpec a boxed type * common/gvfsdaemonprotocol.h: Add OpenIconForRead operation * client/Makefile.am: * client/gvfsiconloadable.[ch]: In gvfs client side, implement GLoadableIcon for GVfsIcon type. * client/gdaemonvfs.c: Make sure that we add the GLoadableIcon interface for GVfsIcon on load * daemon/Makefile.am: * daemon/gvfsbackend.[ch]: * daemon/gvfsjobopeniconforread.[ch]: Add new job type for OpenIconForRead op * daemon/gvfsbackendgphoto2.c: Implement OpenIconForRead for icon previews. svn path=/trunk/; revision=2070
* Reverse map fuse paths to gvfs uris in g_file_new_for_path().Alexander Larsson2008-09-261-3/+139
| | | | | | | | | | | | | | 2008-09-26 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * common/gvfsdaemonprotocol.h: * daemon/mount.c: Reverse map fuse paths to gvfs uris in g_file_new_for_path(). svn path=/trunk/; revision=2031
* Only call the IsSupported dbus call when the class is actually neededAlexander Larsson2008-09-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-09-23 Alexander Larsson <alexl@redhat.com> * monitor/proxy/gproxyvolumemonitor.[ch]: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/remote-volume-monitor-module.c: Only call the IsSupported dbus call when the class is actually needed instead of on gio init. Don't integrate internal session bus with mainloop during is_support code, as that is not necessary yet, and it caused problem if done in a thread. This fixes the trash crash issue in bug #547568. 2008-09-23 Alexander Larsson <alexl@redhat.com> * client/Makefile.am: * common/Makefile.am: * common/gmountsource.c: * common/gmounttracker.c: * monitor/gphoto2/Makefile.am: * monitor/hal/Makefile.am: * monitor/proxy/Makefile.am: Link all modules against the installed libgvfscommon instead of duplicating the statically linked one. This is safe wrt namespace conflicts, because the modules are opened RTLD_LOCAL so the dependencies will not pollute the global namespace. * client/gdaemonvfs.c: Make the gvfsdbus module persistant. This means we will never unload it, and thus not unload libgvfscommon which could be problematic. This is not a huge problem, as: + The gio modules will not be loaded anyway unless you use gio + The gvfsdbus module will be persistent anyway as soon as the app references the GVfs object, which likely all gio apps do + The module load order doesn't matter wrt unload order, because all gio modules are loaded before any one is unloaded. svn path=/trunk/; revision=2021
* Don't drop query and fragment portions of the URI when decoding it and theBastien Nocera2008-08-271-1/+9
| | | | | | | | | | | | | 2008-08-27 Bastien Nocera <hadess@hadess.net> * client/gdaemonvfs.c (get_mountspec_from_uri), (_g_daemon_vfs_get_uri_for_mountspec): Don't drop query and fragment portions of the URI when decoding it and the URI scheme isn't handled by any backends (Closes: #549553) svn path=/trunk/; revision=1912
* Bug 528891 – Handle URI schemes case insensitiveChristian Kellner2008-08-021-4/+20
| | | | svn path=/trunk/; revision=1853
* Set exit-on-disconnect to FALSE on private dbus connections to preventMatthias Clasen2008-04-211-0/+2
| | | | | | | | | | | | 2008-04-21 Matthias Clasen <mclasen@redhat.com> * client/gdaemonvfs.c: * hal/hal-pool.c: Set exit-on-disconnect to FALSE on private dbus connections to prevent unexpected exits. (#528785) svn path=/trunk/; revision=1751
* Bug 526454 – too early use of dbus session busMatthias Clasen2008-04-161-0/+7
| | | | | | | | | | | | | 2008-04-15 Matthias Clasen <mclasen@redhat.com> Bug 526454 – too early use of dbus session bus * client/gdaemonvfs.c (g_io_module_load): Refuse to load if there is no session bus. svn path=/trunk/; revision=1737
* Free strings with g_free, not dbus_free (#521269)Alexander Larsson2008-03-101-1/+1
| | | | | | | | | | 2008-03-10 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: Free strings with g_free, not dbus_free (#521269) svn path=/trunk/; revision=1634
* Bump timeout to standard gvfs time. Patch from Matthias ClasenAlexander Larsson2008-03-041-1/+1
| | | | | | | | | | | | 2008-03-04 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c (_g_daemon_vfs_get_mount_info_async): Bump timeout to standard gvfs time. Patch from Matthias Clasen svn path=/trunk/; revision=1534
* Fix crash with NULL host (like "ftp://")Alexander Larsson2008-03-041-1/+1
| | | | | | | | | | | 2008-03-04 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: (_g_daemon_vfs_get_uri_for_mountspec): Fix crash with NULL host (like "ftp://") svn path=/trunk/; revision=1529
* Avoid duplications in supported_uris.Alexander Larsson2008-03-041-2/+21
| | | | | | | | | | | | | | 2008-03-04 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: Avoid duplications in supported_uris. * daemon/smb-browse.mount.in: * daemon/smb.mount.in: Add scheme info so smb is listed in supported_uris again. svn path=/trunk/; revision=1517
* properly parse aliasesBenjamin Otte2008-03-031-4/+8
| | | | | | | | | | 2008-03-03 Benjamin Otte <otte@gnome.org> * client/gdaemonvfs.c: (fill_mountable_info): properly parse aliases svn path=/trunk/; revision=1512
* Add _g_dbus_message_iter_append_args_valist andAlexander Larsson2008-03-031-79/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-03 Alexander Larsson <alexl@redhat.com> * common/gdbusutils.[ch]: Add _g_dbus_message_iter_append_args_valist and _g_dbus_message_iter_append_args. * common/gvfsdaemonprotocol.h: Add G_VFS_DBUS_MOUNTTRACKER_OP_LIST_MOUNTABLE_INFO * client/Makefile.am: * client/gdaemonvfs.c: Use listMountableInfo to get supported uri schemes and information for default uri handling. Handle default port in uris and if host_is_inet normalize hostnames, including removing ipv6 brackets. * client/sftpuri.c: Removed, as the previous work replaces it * daemon/gvfsdaemonutils.c: (gvfs_file_info_populate_content_types): Fix uninitialized variable warning. * daemon/mount.c: Read new mountfile info and implement list_mountable_info. * daemon/sftp.mount.in: Add info for sftp svn path=/trunk/; revision=1508
* g_uri_get_scheme -> g_uri_parse_schemeAlexander Larsson2008-02-251-1/+1
| | | | | | | | | | 2008-02-25 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c (get_mountspec_from_uri): g_uri_get_scheme -> g_uri_parse_scheme svn path=/trunk/; revision=1363
* Bind to GVFS text domain. Fixes #517892.Christian Neumair2008-02-221-1/+4
| | | | | | | | | | | | | | 2007-02-22 Christian Neumair <cneumair@gnome.org> * gconf/gconf-module.c: (g_io_module_load): * gconf/Makefile.am: * hal/hal-module.c: (g_io_module_load): * hal/Makefile.am: * client/gdaemonvfs.c: (g_daemon_vfs_init): * client/Makefile.am: Bind to GVFS text domain. Fixes #517892. svn path=/trunk/; revision=1330
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-3/+1
| | | | | | | | | | | | | | | 2008-02-19 Alexander Larsson <alexl@redhat.com> * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302
* Implement uri navigation for http uris (#509341)Alexander Larsson2008-01-311-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-31 Alexander Larsson <alexl@redhat.com> Implement uri navigation for http uris (#509341) * client/gvfsurimapper.[ch]: Add get_mount_info_for_path method for mount types like ssh that change MountInfo as the path changes. * client/httpuri.c: Implement get_mount_info_for_path. For http, set the path from the uri. The will be removed on i/o by the corresponding path being in the mount_prefix. * daemon/gvfsbackendhttp.c: Set mount_prefix to path from uri. Remove unused code in message_new_from_filename * client/gdaemonfile.c: * client/gdaemonvfs.[ch]: Use the new uri mapper function to change GMountInfo as the path changes. svn path=/trunk/; revision=1214
* Fix typo G_DAEMON_FILE -> G_IS_DAEMON_FILEAlexander Larsson2008-01-281-3/+5
| | | | | | | | | | | | | | | | | | | 2008-01-28 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c (g_daemon_file_move): Fix typo G_DAEMON_FILE -> G_IS_DAEMON_FILE * configure.ac: Require glib >= 2.15.4 * client/gdaemonvfs.c: * client/gdaemonvolumemonitor.c: * hal/ghalvolumemonitor.c: Register with the new extension points API. svn path=/trunk/; revision=1189
* Added. Added sftp uri mapper that aliases ssh: to sftp: (#509860)Alexander Larsson2008-01-211-0/+2
| | | | | | | | | | | | | | | | | 2008-01-21 Alexander Larsson <alexl@redhat.com> * client/Makefile.am: * client/gdaemonvfs.c: * client/sftpuri.c: Added. Added sftp uri mapper that aliases ssh: to sftp: (#509860) * client/smburi.c: (smb_from_uri): Fix leak. svn path=/trunk/; revision=1154
* Fix the double use of a counter variable inside nested loops.Christian Kellner2008-01-111-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-11 Christian Kellner <gicmo@gnome.org> * client/gdaemonvfs.c: Fix the double use of a counter variable inside nested loops. * client/Makefile.am: * client/httpuri.c: UriMapper added, which is needed for plain http method. * configure.ac: Check for libsoup version >= 2.2.104 * daemon/gvfsbackendhttp.c: Initial implementation of plain http methods. * daemon/Makefile.am: * daemon/http.mount.in: Added. * daemon/soup-input-stream.c: * daemon/soup-input-stream.h: Import of Dan Winship's libsoup based streaming classes. svn path=/trunk/; revision=1101
* Better error return on not mounted.Alexander Larsson2008-01-091-3/+1
| | | | | | | | | | 2008-01-09 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c (_g_daemon_vfs_get_mount_info_sync): Better error return on not mounted. svn path=/trunk/; revision=1084
* Fix warningsAlexander Larsson2007-12-201-1/+1
| | | | | | | | | | | | | 2007-12-20 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * client/gdaemonvfs.c: * client/gvfsfusedaemon.c: Fix warnings svn path=/trunk/; revision=1056
* Remove spew Update for new APIs Don't use GDaemonVolumeMonitor if notAlexander Larsson2007-12-191-9/+6
| | | | | | | | | | | | | | | | | | 2007-12-19 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * client/gdaemonvolumemonitor.c: * hal/ghalvolumemonitor.c: * hal/hal-module.c: Remove spew Update for new APIs Don't use GDaemonVolumeMonitor if not using GDaemonVfs. * hal/hal-pool.c: Close custom dbus connection before unrefing svn path=/trunk/; revision=1053
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * client/gdaemondirectorymonitor.c: * client/gdaemondirectorymonitor.h: * client/gdaemonfile.c: * client/gdaemonfile.h: * client/gdaemonfileenumerator.c: * client/gdaemonfileenumerator.h: * client/gdaemonfileinputstream.c: * client/gdaemonfileinputstream.h: * client/gdaemonfilemonitor.c: * client/gdaemonfilemonitor.h: * client/gdaemonfileoutputstream.c: * client/gdaemonfileoutputstream.h: * client/gdaemonmount.c: * client/gdaemonmount.h: * client/gdaemonvfs.c: * client/gdaemonvfs.h: * client/gdaemonvolumemonitor.h: * client/gvfsdaemondbus.c: * client/gvfsdaemondbus.h: * client/gvfsfusedaemon.c: * client/gvfsurimapper.h: * client/smburi.c: * common/gdbusutils.c: * common/gdbusutils.h: * common/gmountoperationdbus.c: * common/gmountoperationdbus.h: * common/gmountsource.c: * common/gmountsource.h: * common/gsysutils.c: * common/gvfsdaemonprotocol.c: * common/gvfsdaemonprotocol.h: * daemon/gvfsbackend.h: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjob.c: * daemon/gvfsjob.h: * daemon/gvfsjobcopy.h: * daemon/gvfsjobcreatemonitor.h: * daemon/gvfsjobdelete.h: * daemon/gvfsjobenumerate.h: * daemon/gvfsjobmakedirectory.h: * daemon/gvfsjobmakesymlink.h: * daemon/gvfsjobmount.h: * daemon/gvfsjobmountmountable.h: * daemon/gvfsjobmove.h: * daemon/gvfsjobqueryattributes.h: * daemon/gvfsjobqueryfsinfo.h: * daemon/gvfsjobqueryinfo.h: * daemon/gvfsjobsetattribute.h: * daemon/gvfsjobsetdisplayname.h: * daemon/gvfsjobtrash.h: * daemon/gvfsjobunmount.h: * daemon/gvfsmonitor.h: * daemon/mount.c: * daemon/mount.h: * programs/gvfs-cat.c: * programs/gvfs-copy.c: * programs/gvfs-info.c: * programs/gvfs-ls.c: * programs/gvfs-monitor-dir.c: * programs/gvfs-monitor-file.c: * programs/gvfs-mount.c: * programs/gvfs-move.c: * programs/gvfs-rm.c: * programs/gvfs-save.c: * programs/gvfs-trash.c: * test/benchmark-gvfs-big-files.c: * test/benchmark-gvfs-small-files.c: * test/benchmark-posix-big-files.c: * test/benchmark-posix-small-files.c: Only use <gio/gio.h> include svn path=/trunk/; revision=1039
* Use the new API to load the modulesAlexander Larsson2007-12-051-1/+1
| | | | | | | | | | | 2007-12-05 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: (g_daemon_vfs_init): Use the new API to load the modules svn path=/trunk/; revision=1036
* Update to build with the latest glib included gioAlexander Larsson2007-11-271-4/+5
| | | | | | | | | | | | | | | | | | | | | 2007-11-27 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * client/gdaemonvfs.c: * client/gvfsfusedaemon.c: * client/gvfsuriutils.h: * daemon/gvfsbackend.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendtrash.c: * daemon/gvfschannel.c: * daemon/gvfsmonitor.c: * daemon/mount.c: Update to build with the latest glib included gio svn path=/trunk/; revision=1034
* Make sure we somewhat cleanly handle the various dbus daemons going down.Alexander Larsson2007-11-141-5/+42
| | | | | | | | | | | | | | | | | | | | | | | 2007-11-14 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * client/gvfsdaemondbus.c: Make sure we somewhat cleanly handle the various dbus daemons going down. By somewhat I mean that no problem should be persistant even if you might get some transient error messages. Unfortunately the only way to be able to cleanly handle this involves globally ignoring SIGPIPE. What can I say, unix sucks. * common/gsysutils.c: (_g_socket_receive_fd): Handle errors if e.g. the fd is closed svn path=/trunk/; revision=1023
* Make this class dynamicAlexander Larsson2007-11-121-0/+5
| | | | | | | | | | | | | | | | 2007-11-12 Alexander Larsson <alexl@redhat.com> * client/gvfsurimapper.[ch]: Make this class dynamic * client/Makefile.am: * client/gdaemonvfs.c: * client/smburi.c: Build smb uri mapper into module (this avoids extra .so files) svn path=/trunk/; revision=1021
* Add new functionsAlexander Larsson2007-11-121-11/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-12 Alexander Larsson <alexl@redhat.com> * common/gmountspec.[ch]: (g_mount_spec_new_from_data): (g_mount_spec_set_with_len): Add new functions * client/Makefile.am: * common/Makefile.am: Update for moved files Build non-shared version of common libs. Ups non-shared common libs in client module. * common/gvfsuriutils.[ch]: Removed. * client/gvfsuriutils.[ch]: Added. Moved uriutils to gvfs (not used by daemon) Re-namespace to g_vfs_* * common/gvfsurimapper.[ch]: Removed. * client/gvfsurimapper.[ch]: Added. Move UriMapper to client lib Remove/Hide use of GMountSpec * client/gdaemonvfs.c: * client/smburi.c: Update to the new APIs * client/gvfsfusedaemon.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsjobqueryfsinfo.c: Fix warnings svn path=/trunk/; revision=1020
* Update to new gvfs construction APIAlexander Larsson2007-11-071-17/+23
| | | | | | | | | | 2007-11-07 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: Update to new gvfs construction API svn path=/trunk/; revision=1017
* Do not leak the decoded uri.Paolo Borelli2007-11-031-1/+2
| | | | | | | | | | 2007-11-03 Paolo Borelli <pborelli@katamail.com> * client/gdaemonvfs.c (get_mountspec_from_uri): Do not leak the decoded uri. svn path=/trunk/; revision=1009
* Add copyright information to source files.Christian Kellner2007-11-011-0/+22
| | | | | | | | | | | | 2007-11-01 Christian Kellner <gicmo@gnome.org> * client/*.[ch]: * common/*.[ch]: * daemon/*.[ch]: * test/*.[ch]: Add copyright information to source files. svn path=/trunk/; revision=1007
* Implement get_uri_schemeAlexander Larsson2007-11-011-4/+4
| | | | | | | | | | | | | | 2007-11-01 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonvfs.[ch]: Implement get_uri_scheme * daemon/mount.c: Add needed includes svn path=/trunk/; revision=1006
* Add all mount info to GMountInfo Make it refcountedAlexander Larsson2007-10-311-146/+66
| | | | | | | | | | | | | | | | | 2007-10-31 Alexander Larsson <alexl@redhat.com> * common/gmounttracker.[ch]: Add all mount info to GMountInfo Make it refcounted * client/gdaemonvfs.[ch]: * client/gdaemonfile.c: * client/gdaemonvolumemonitor.c: Remove GMountRef, replacing its use with GMountInfo svn path=/trunk/; revision=1001
* Add registerFuse callAlexander Larsson2007-10-261-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-26 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.h: Add registerFuse call * client/gvfsfusedaemon.c: Register with vfs daemon Exit (and unmount) if daemon dies * daemon/mount.c: Hand out fuse mountpaths when availible. * client/gdaemonvfs.[ch]: * common/gmounttracker.c: Handle sent fuse mountpath * client/gdaemonfile.c: Implement g_daemon_file_get_path using fuse if availible. svn path=/trunk/; revision=996
* Make to_uri_scheme return const string.Alexander Larsson2007-10-251-7/+24
| | | | | | | | | | | | | | | | 2007-10-25 Alexander Larsson <alexl@redhat.com> * client/smburi.c: * common/gvfsurimapper.[ch]: Make to_uri_scheme return const string. * client/gdaemonfile.[ch]: * client/gdaemonvfs.[ch]: Add _g_daemon_vfs_mountspec_has_uri_scheme and use it to implement g_file_has_uri_scheme svn path=/trunk/; revision=994
* Ensure GDaemonFile mount specs are actually unique. When a non-uniqueAlexander Larsson2007-10-231-2/+1
| | | | | | | | | | | | | | 2007-10-23 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonvfs.c: * common/gmountspec.[ch]: Ensure GDaemonFile mount specs are actually unique. When a non-unique mount spec was finalized any unique version of the same was removed from the hashtable. svn path=/trunk/; revision=990
* Better handling for default types. (Handle hostname, port and username)Alexander Larsson2007-10-231-9/+19
| | | | | | | | | | | | 2007-10-23 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: (_g_daemon_vfs_get_uri_for_mountspec): Better handling for default types. (Handle hostname, port and username) svn path=/trunk/; revision=989
* Update to use the gurifuncs.h from gio. Fix filename parsing to handle ~/xAlexander Larsson2007-10-221-7/+6
| | | | | | | | | | | | | | 2007-10-22 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.c: * common/gvfsuriutils.[ch]: * daemon/gvfsbackendtrash.c: Update to use the gurifuncs.h from gio. Fix filename parsing to handle ~/x svn path=/trunk/; revision=988
* Add user_visible to mount info Reorder args so that new stuff comes at theAlexander Larsson2007-10-191-2/+4
| | | | | | | | | | | | | | | | | | | | | 2007-10-19 Alexander Larsson <alexl@redhat.com> * common/gmounttracker.[ch]: * client/gdaemonvfs.c: * daemon/mount.c: Add user_visible to mount info Reorder args so that new stuff comes at the end * daemon/gvfsbackend.[ch]: Add user_visible setting Fix up various setters that set the wrong variable * daemon/gvfsbackendtrash.c: Add icon and better display name svn path=/trunk/; revision=984
* Implement using DEFINE_DYNAMIC_TYPE Actually register GDaemonVolumeMonitorAlexander Larsson2007-10-191-32/+11
| | | | | | | | | | | | | | | | 2007-10-19 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * client/gdaemonvolume.c: * client/gdaemonvolumemonitor.[ch]: Implement using DEFINE_DYNAMIC_TYPE Actually register GDaemonVolumeMonitor in giomodule * common/gmounttracker.c: Update to the on-dbus format for mounts svn path=/trunk/; revision=983
* Add defines for monitoringAlexander Larsson2007-10-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-08 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.h: Add defines for monitoring * client/Makefile.am: * client/gdaemondirectorymonitor.[ch]: * client/gdaemonfilemonitor.[ch]: * client/gdaemonfile.c: Add daemon directory monitor and initial work on file monitor * client/gdaemonfileenumerator.c: Make path_counter private Return DBUS_HANDLER_RESULT_HANDLED when handling messages. * client/gdaemonvfs.[ch]: Make _g_mount_ref_ref "public" * client/gvfsdaemondbus.c: Handle NULL callbacks for async calls * daemon/Makefile.am: * daemon/gvfsbackend.[ch]: * daemon/gvfsjobcreatemonitor.[ch]: Add create_dir_monitor and create_file_monitor. Add g_vfs_backend_get_daemon * daemon/gvfsmonitor.[ch]: Helper code for monitors * daemon/gvfsbackendtrash.c: Implement directory monitor for trash dirs svn path=/trunk/; revision=971
* Implement get_supported_uri_schemes method and add a GVfsUriMapper methodSebastian Dröge2007-10-081-2/+121
| | | | | | | | | | | | | | | | | * client/gdaemonvfs.c: (g_daemon_vfs_finalize), (g_daemon_vfs_init), (fill_supported_uri_schemes), (g_daemon_vfs_get_supported_uri_schemes), (g_daemon_vfs_class_init): * client/smburi.c: (smb_to_uri_scheme), (g_vfs_uri_mapper_smb_class_init): * common/gvfsdaemonprotocol.h: * common/gvfsurimapper.c: (g_vfs_uri_mapper_to_uri_scheme): * common/gvfsurimapper.h: * daemon/mount.c: (list_mount_types), (dbus_message_function): Implement get_supported_uri_schemes method and add a GVfsUriMapper method to map a mount spec to an URI scheme. svn path=/trunk/; revision=970
* Pass in DBusConnection to use instead of using default oneAlexander Larsson2007-09-251-7/+16
| | | | | | | | | | | | | | | | | | | | | | | 2007-09-25 Alexander Larsson <alexl@redhat.com> * common/gmountoperationdbus.[ch]: * common/gmounttracker.[ch]: Pass in DBusConnection to use instead of using default one * client/gdaemonfile.c: * client/gdaemonvfs.[ch]: * client/gvfsdaemondbus.c: Use private dbus connection even for async calls, since the mainloop integration is conflicting with dbus-glib. This is a temporary measure until this is solved in a better way. * client/gdaemonvolumemonitor.c: * client/gvfsfusedaemon.c: * daemon/gvfsbackendsmbbrowse.c: Update to the API changes svn path=/trunk/; revision=959
* Don't unref wrapped_vfs as it's just a pointer to the single instanceSebastian Dröge2007-09-251-2/+0
| | | | | | | | * client/gdaemonvfs.c: (g_daemon_vfs_finalize): Don't unref wrapped_vfs as it's just a pointer to the single instance return value of g_vfs_get_local(). svn path=/trunk/; revision=958
* Fix up mount prefix matchingAlexander Larsson2007-09-131-2/+8
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1189175983 +0200 svn path=/trunk/; revision=909
* Fix uninitialized use of uriAlexander Larsson2007-09-131-0/+1
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1189003632 +0200 svn path=/trunk/; revision=894
* Pass uris as strings into GVfsUriMapperAlexander Larsson2007-09-131-40/+76
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1189000776 +0200 svn path=/trunk/; revision=893
* Don't prefix the uri tools with underscore.Alexander Larsson2007-09-131-2/+2
| | | | | | | | Export some more uti tools. Original git commit by Alexander Larsson <alexl@redhat.com> at 1188998391 +0200 svn path=/trunk/; revision=891
* Split out gio into its own moduleAlexander Larsson2007-09-131-2/+1
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1188826453 +0200 svn path=/trunk/; revision=888