summaryrefslogtreecommitdiff
path: root/client/gdaemonfileenumerator.c
AgeCommit message (Collapse)AuthorFilesLines
2013-01-17Use g_list_free_full() where applicableTomas Bzatek1-2/+1
2012-07-31gdbus: Remove debug printsTomas Bzatek1-18/+0
2012-07-31gdbus: Use casting macros where possibleTomas Bzatek1-3/+3
2012-07-31gdbus: Use g_clear_object() where appropriateTomas Bzatek1-2/+1
2012-07-31gdbus: Use private GMainContext for sync enumeratorTomas Bzatek1-17/+34
It's little messy due to shared code across sync calls with private main context and async calls that don't have it's mainloop and can't use private context.
2012-07-31gdbus: Core daemon and client portTomas Bzatek1-126/+191
Port of most of the gvfs core, few bits still missing. Lot of debug prints around, will be removed in further commits. Same amount of TODOs and FIXMEs. Notes: * kill serials? * get rid of mainloops where applicable (copy/move progress callback, enumerator) * fix keyring integration * use gdbus builtin fd passing within gvfsdaemon.c, kill the extra_fd stuff
2012-07-30Update the Address of the FSFFelix Möller1-2/+2
Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
2011-10-21Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.Kjartan Maraas1-1/+1
https://bugzilla.gnome.org/show_bug.cgi?id=659815
2010-03-31Attach cancellable to async result and check in finish functionsBenjamin Otte1-7/+50
This makes sure we always return ERROR_CANCELLED, just like we want to guarantee and avoids crashes in the file chooser. There should be API in GSimpleAsyncResult to attach a GCancellable that does this job for us, but so far there isn't, so we use g_object_get/set_data() and check the cancellables manually in the finish function. https://bugzilla.gnome.org/show_bug.cgi?id=614099
2010-03-31Revert "Use complete_with_cancellable() in file enumerator"Benjamin Otte1-4/+3
This reverts commit 5af6a1dbdd2c6a61b515a5bd64350db3af16dae7. Replacing complete_in_idle() with a call that directly completes is BAD BAD BAD.
2010-03-29Use complete_with_cancellable() in file enumeratorBenjamin Otte1-3/+4
This makes sure we always return ERROR_CANCELLED, just like we want to guarantee and avoids crashes in the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=614099
2009-12-01Fix warningAlexander Larsson1-1/+1
2009-06-25Avoid deadlock on cancelling async enumerate_childrenAlexander Larsson1-2/+23
We can't call g_cancellable_disconnect from inside the cancel signal emission, as that deadlocks. However we know if that happens and can use the regular disconnect. Also, we need to grab the infos lock when calling trigger_async_done, this was only done in some cases, now its always done.
2009-06-25Implement metadata setting for remote locationsAlexander Larsson1-4/+74
2009-05-15Use new race-free cancellable signal connect APIs (#572844)Alexander Larsson1-5/+18
2009-05-12Ref the infos in next_files_finish (#582195)Alexander Larsson1-5/+2
In later glib versions setting the GSimpleAsyncResult gpointer data frees the old data using the destroy notify, which can cause crashes since we return it. So, just copy+ref the list instead of trying to steal the asyncresult one.
2008-09-15Add proper implementation of async file enumeration. This avoids theAlexander Larsson1-6/+219
2008-09-15 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonfileenumerator.c: Add proper implementation of async file enumeration. This avoids the problem with the default thread based ones that could cause callbacks in the non-mainloop thread. (#551337) svn path=/trunk/; revision=1974
2008-06-16Bug 536252 – GFileEnumerator should allow access to the containing GFileRoss Burton1-2/+4
2008-06-16 Ross Burton <ross@burtonini.com> Bug 536252 – GFileEnumerator should allow access to the containing GFile * client/gdaemonfile.c: * client/gdaemonfileenumerator.c: * client/gdaemonfileenumerator.h: Pass the GFile to the file enumerator constructor and use it to set the container property. (Requires glib r7044) svn path=/trunk/; revision=1810
2008-03-28Actually increment count so that timeouts works. Pointed out by Joe MarcusAlexander Larsson1-1/+1
2008-03-28 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileenumerator.c (g_daemon_file_enumerator_next_file): Actually increment count so that timeouts works. Pointed out by Joe Marcus Clarke svn path=/trunk/; revision=1686
2008-03-26Avoid hanging forever and not sending any async messages. This couldAlexander Larsson1-3/+9
2008-03-26 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileenumerator.c: (g_daemon_file_enumerator_next_file): Avoid hanging forever and not sending any async messages. This could happen if we raced and missed the done check. svn path=/trunk/; revision=1682
2008-02-19Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson1-1/+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
2007-12-14Only use <gio/gio.h> includeAlexander Larsson1-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
2007-12-05Update to gio API changeAlexander Larsson1-1/+1
2007-12-05 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonfileenumerator.c: * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: Update to gio API change svn path=/trunk/; revision=1035
2007-11-01Add copyright information to source files.Christian Kellner1-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
2007-10-08Add defines for monitoringAlexander Larsson1-1/+3
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
2007-09-13Update to new GFileEnumerator apisAlexander Larsson1-5/+5
Original git commit by Alexander Larsson <alexl@redhat.com> at 1188912182 +0200 svn path=/trunk/; revision=890
2007-09-13Rename mount daemon main interface to Mount, instead of MountPointAlexander Larsson1-2/+2
Clean up some dbus interface define names Original git commit by Alexander Larsson <alexl@redhat.com> at 1178704724 +0200 svn path=/trunk/; revision=530
2007-09-13G*Daemon -> GDaemon*Alexander Larsson1-0/+216
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1173787131 +0100 svn path=/trunk/; revision=388