summaryrefslogtreecommitdiff
path: root/daemon/gvfsmonitor.c
Commit message (Collapse)AuthorAgeFilesLines
* daemon: Don't use deprecated private structure APIsOndrej Holy2018-07-101-8/+4
| | | | | | | g_type_class_add_private and G_TYPE_INSTANCE_GET_PRIVATE have been recently deprecated. Let's use rather G_DEFINE_TYPE_WITH_PRIVATE and _get_instance_private() instead in order to prevent deprecation warnings.
* Daemon: Ensure monitors are not prematurally finalized.Philip Langdale2013-03-301-1/+10
| | | | | | | | | If a monitor is being cleaned up due to the backend disappearing, we could see the monitor being finalized as a result of removing a subscriber, leading to a segfault as it continues to access its internal state. https://bugzilla.gnome.org/show_bug.cgi?id=696479
* Strip dbus error strings from GError after all dbus calls.Alexander Larsson2012-08-241-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682384
* gdbus: Remove debug printsTomas Bzatek2012-07-311-12/+0
|
* gdbus: Properly disconnect signal handlersTomas Bzatek2012-07-311-0/+1
| | | | ...not doing that leads to accessing freed memory
* gdbus: Handle client connection dying during monitoringTomas Bzatek2012-07-311-11/+21
| | | | Handle a connection dying and unregister its subscription.
* gdbus: Monitoring portTomas Bzatek2012-07-311-120/+161
|
* Update the Address of the FSFFelix Möller2012-07-301-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>
* Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.Kjartan Maraas2011-10-211-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=659815
* Don't leak dbus messagesAlexander Larsson2011-04-151-4/+8
| | | | | We're missing a lot of dbus_message_unref after sending messages, add them.
* Bug 563418 – gvfs backend leaks monitorsAlexander Larsson2009-03-131-3/+5
| | | | | | | | | | | | | | | 2009-03-13 Alexander Larsson <alexl@redhat.com> Bug 563418 – gvfs backend leaks monitors * daemon/gvfsmonitor.c: (unsubscribe): (vfs_monitor_message_callback): Fix crashes when unsubscribing monitors. svn path=/trunk/; revision=2322
* Send replies to subscribe and unsubscribe messages.Alexander Larsson2008-03-261-0/+6
| | | | | | | | | | | 2008-03-26 Alexander Larsson <alexl@redhat.com> * daemon/gvfsmonitor.c: Send replies to subscribe and unsubscribe messages. svn path=/trunk/; revision=1681
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-1/+0
| | | | | | | | | | | | | | | 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
* Fix warningsAlexander Larsson2008-01-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-21 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/sftpuri.c: * common/gmounttracker.c: * daemon/gvfsmonitor.c: * daemon/gvfsbackend.c: Fix warnings * daemon/gvfsbackendburn.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendtrash.c: Update to latest gio API (removal of duplicate GSeekable calls). 2008-01-21 Alexander Larsson <alexl@redhat.com> * configure.ac: Post release version bump svn path=/trunk/; revision=1161
* Make GVfsMonitor API simpler for users.Alexander Larsson2008-01-101-24/+78
| | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackend.h: * daemon/gvfsmonitor.[ch]: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendtrash.c: Make GVfsMonitor API simpler for users. svn path=/trunk/; revision=1091
* Remove freeing of initial ref after delay.Alexander Larsson2008-01-101-19/+0
| | | | | | | | | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * daemon/gvfsmonitor.c: Remove freeing of initial ref after delay. * daemon/gvfsjobcreatemonitor.[ch]: Set the monitor as result here, not only the obj path. Nicer and allows better lifetime handling. If returning a obj ref, keep the monitor alive for some time to allow a subscribe request. * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendtrash.c: Update to the new APIs svn path=/trunk/; revision=1090
* Update to build with the latest glib included gioAlexander Larsson2007-11-271-2/+2
| | | | | | | | | | | | | | | | | | | | | 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
* Add required includes for solaris Patch from Damien CarberyAlexander Larsson2007-11-131-0/+1
| | | | | | | | | | | | | | | | 2007-11-13 Alexander Larsson <alexl@redhat.com> * common/gsysutils.c: * daemon/gvfschannel.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjobcopy.c: * daemon/gvfsmonitor.c: * daemon/gvfswritechannel.c: Add required includes for solaris Patch from Damien Carbery svn path=/trunk/; revision=1022
* 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
* Make sending icons actually workAlexander Larsson2007-10-161-0/+1
| | | | | | | | | | | | | | | | 2007-10-16 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.[ch]: Make sending icons actually work * daemon/gvfsbackendtrash.c: Set icon for toplevel * daemon/gvfsmonitor.c: Initialize error before call svn path=/trunk/; revision=980
* Add defines for monitoringAlexander Larsson2007-10-081-0/+259
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