1. 22 Oct, 2015 3 commits
  2. 20 Oct, 2015 1 commit
  3. 05 Jun, 2015 1 commit
  4. 20 Mar, 2015 1 commit
    • Allison Karlitskaya's avatar
      substantially rework file monitors · 2737ab32
      Allison Karlitskaya authored
      Remove all event merging and dispatch logic from GFileMonitor.  The only
      implementation of GFileMonitor outside of glib is in gvfs and it already
      does these things properly.
      
      Get rid of GLocalDirectoryMonitor.  We will use a single class,
      GLocalFileMonitor, for both directory and file monitoring.  This will
      prevent every single backend from having to create two objects
      separately (eg: ginotifydirectorymonitor.c and ginotifyfilemonitor.c).
      
      Introduce GFileMonitorSource as a thread-safe cross-context dispatch
      mechanism.  Put it in GLocalFileMonitor.  All backends will be expected
      to dispatch via the source and not touch the GFileMonitor object at all
      from the worker thread.
      
      Remove all construct properties from GLocalFileMonitor and remove the
      "context" construct property from GFileMonitor.  All backends must now
      get the information about what file to monitor from the ->start() call
      which is mandatory to implement.
      
      Remove the implementation of rate limiting in GFileMonitor and add an
      implementation in GLocalFileMonitor.  gvfs never did anything with this
      anyway, but if it wanted to, it would have to implement it for itself.
      This was done in order to get the rate_limit field into the
      GFileMonitorSource so that it could be safely accessed from the worker
      thread.
      
      Expose g_local_file_is_remote() internally for NFS detection.
      
      With the "is_remote" functionality exposed, we can now move all
      functions for creating local file monitors to a proper location in
      glocalfilemonitor.c
      
      Port the inotify backend to adjust to the changes above.  None of the
      other backends are ported yet.  Those will come in future commits.
      2737ab32
  5. 06 Mar, 2015 1 commit
  6. 05 Feb, 2015 1 commit
  7. 05 Dec, 2014 1 commit
  8. 10 Jun, 2014 1 commit
  9. 10 Apr, 2014 1 commit
  10. 20 Feb, 2014 1 commit
  11. 15 Feb, 2014 1 commit
    • Matthias Clasen's avatar
      docs: let go of * · bc6ee788
      Matthias Clasen authored
      Since we are no longer using sgml mode, using /* */ to
      escape block comments inside examples does not work anymore.
      Switch to using line comments with //
      bc6ee788
  12. 14 Feb, 2014 1 commit
    • Allison Karlitskaya's avatar
      configure.ac: tweak inotify check · 450e7b10
      Allison Karlitskaya authored
      Our check for inotify_init1() being defined is broken.  We happily
      declare that inotify is supported, even if the check fails.
      
      This was originally intended to check for inotify_init1 in the libc so
      that we could fall back to inotify_init if it was not yet defined.
      
      FreeBSD has a libinotify that emulates the inotify API via kqueue.  It
      installs a <sys/inotify.h> header and requires linking to -linotify.  We
      don't want to falsely detect working inotify in this case.
      
      Treat the lack of inotify_init1() in the libc as a lack of inotify
      support.  This requires only a new libc -- we still support old kernels:
      in the case that inotify1_init() fails, we fall back to inotify_init().
      
      https://bugzilla.gnome.org/show_bug.cgi?id=724330
      450e7b10
  13. 08 Feb, 2014 1 commit
  14. 06 Feb, 2014 1 commit
  15. 01 Feb, 2014 2 commits
  16. 31 Jan, 2014 1 commit
  17. 23 Nov, 2013 1 commit
  18. 11 Nov, 2013 2 commits
  19. 09 Nov, 2013 1 commit
  20. 21 Oct, 2013 2 commits
  21. 19 Jan, 2013 2 commits
    • Allison Karlitskaya's avatar
      localfile: add support for monitoring on NFS · 6be54e9f
      Allison Karlitskaya authored
      Add a pair of new extension points: 'gio-nfs-file-monitor' and
      'gio-nfs-directory-monitor'.
      
      Add a check to GLocalFile when creating a file monitor.  If the
      requested file is in the user's home directory and the user has an NFS
      home directory then attempt to use an implementation of one of the new
      extension points.  If we don't have any implementations then fall back
      to the normal "local" monitors.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=592211
      6be54e9f
    • Allison Karlitskaya's avatar
      giomodule: add a new "get default" function · 3a7b44c0
      Allison Karlitskaya authored
      _gio_module_get_default() is a very convenient function for modules
      implementing a singleton -- it finds the default module by priority
      subject to override by a given environment variable name, instantiates
      it, and caches the instance for future calls.  It also has the ability
      to query instances for being 'active' using a callback.
      
      It doesn't work very well for non-singletons (like file monitors).
      
      Add a new function _gio_module_get_default_type() that skips the
      instantiation, returning the GType instead.  As a replacement for the
      'active' callback, a vtable offset can be given for a virtual function
      to use to query if a particular backend is supported.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=592211
      3a7b44c0
  22. 02 Dec, 2012 1 commit
  23. 15 Nov, 2012 2 commits
  24. 15 May, 2012 1 commit
  25. 20 Apr, 2012 1 commit
  26. 12 Apr, 2012 1 commit
  27. 18 Feb, 2012 1 commit
  28. 15 Feb, 2012 1 commit
  29. 30 Jan, 2012 2 commits
  30. 02 Jan, 2012 1 commit
  31. 14 Nov, 2011 1 commit
  32. 03 Nov, 2011 1 commit