mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
2737ab3201
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.
168 lines
3.4 KiB
Plaintext
168 lines
3.4 KiB
Plaintext
gio/gaction.c
|
|
gio/gactiongroup.c
|
|
gio/gappinfo.c
|
|
gio/gapplication.c
|
|
gio/gapplicationcommandline.c
|
|
gio/gapplication-tool.c
|
|
gio/gasynchelper.c
|
|
gio/gasyncinitable.c
|
|
gio/gasyncresult.c
|
|
gio/gbufferedinputstream.c
|
|
gio/gbufferedoutputstream.c
|
|
gio/gbytesicon.c
|
|
gio/gcancellable.c
|
|
gio/gcharsetconverter.c
|
|
gio/gcontenttype.c
|
|
gio/gcontenttype-win32.c
|
|
gio/gconverter.c
|
|
gio/gconverterinputstream.c
|
|
gio/gconverteroutputstream.c
|
|
gio/gcredentials.c
|
|
gio/gdatainputstream.c
|
|
gio/gdataoutputstream.c
|
|
gio/gdbusaddress.c
|
|
gio/gdbusauth.c
|
|
gio/gdbusauthmechanism.c
|
|
gio/gdbusauthmechanismsha1.c
|
|
gio/gdbusconnection.c
|
|
gio/gdbusmessage.c
|
|
gio/gdbusmethodinvocation.c
|
|
gio/gdbusprivate.c
|
|
gio/gdbusproxy.c
|
|
gio/gdbusserver.c
|
|
gio/gdbus-tool.c
|
|
gio/gdesktopappinfo.c
|
|
gio/gdrive.c
|
|
gio/gdummyfile.c
|
|
gio/gdummytlsbackend.c
|
|
gio/gemblem.c
|
|
gio/gemblemedicon.c
|
|
gio/gfileattribute.c
|
|
gio/gfile.c
|
|
gio/gfileenumerator.c
|
|
gio/gfileicon.c
|
|
gio/gfileinfo.c
|
|
gio/gfileinputstream.c
|
|
gio/gfileiostream.c
|
|
gio/gfilemonitor.c
|
|
gio/gfilenamecompleter.c
|
|
gio/gfileoutputstream.c
|
|
gio/gfilterinputstream.c
|
|
gio/gfilteroutputstream.c
|
|
gio/ghttpproxy.c
|
|
gio/gicon.c
|
|
gio/ginetaddress.c
|
|
gio/ginetaddressmask.c
|
|
gio/ginetsocketaddress.c
|
|
gio/ginitable.c
|
|
gio/ginputstream.c
|
|
gio/gioerror.c
|
|
gio/giomodule.c
|
|
gio/gioscheduler.c
|
|
gio/giostream.c
|
|
gio/glib-compile-resources.c
|
|
gio/glib-compile-schemas.c
|
|
gio/gloadableicon.c
|
|
gio/glocalfile.c
|
|
gio/glocalfileenumerator.c
|
|
gio/glocalfileinfo.c
|
|
gio/glocalfileinputstream.c
|
|
gio/glocalfilemonitor.c
|
|
gio/glocalfileoutputstream.c
|
|
gio/glocalvfs.c
|
|
gio/gmemoryinputstream.c
|
|
gio/gmemoryoutputstream.c
|
|
gio/gmount.c
|
|
gio/gmountoperation.c
|
|
gio/gnativevolumemonitor.c
|
|
gio/gnetworkaddress.c
|
|
gio/gnetworkmonitorbase.c
|
|
gio/gnetworkmonitor.c
|
|
gio/gnetworkmonitornetlink.c
|
|
gio/gnetworkmonitornm.c
|
|
gio/gnetworkservice.c
|
|
gio/goutputstream.c
|
|
gio/gpermission.c
|
|
gio/gpollableinputstream.c
|
|
gio/gpollableoutputstream.c
|
|
gio/gpollfilemonitor.c
|
|
gio/gpropertyaction.c
|
|
gio/gproxyaddress.c
|
|
gio/gproxyaddressenumerator.c
|
|
gio/gresolver.c
|
|
gio/gresource.c
|
|
gio/gresourcefile.c
|
|
gio/gresource-tool.c
|
|
gio/gseekable.c
|
|
gio/gsettingsbackend.c
|
|
gio/gsettings.c
|
|
gio/gsettings-tool.c
|
|
gio/gsimpleaction.c
|
|
gio/gsimpleasyncresult.c
|
|
gio/gsimpleiostream.c
|
|
gio/gsimpleproxyresolver.c
|
|
gio/gsocketaddress.c
|
|
gio/gsocket.c
|
|
gio/gsocketclient.c
|
|
gio/gsocketconnectable.c
|
|
gio/gsocketconnection.c
|
|
gio/gsocketinputstream.c
|
|
gio/gsocketlistener.c
|
|
gio/gsocketoutputstream.c
|
|
gio/gsocks4aproxy.c
|
|
gio/gsocks5proxy.c
|
|
gio/gsubprocess.c
|
|
gio/gtask.c
|
|
gio/gtcpconnection.c
|
|
gio/gtcpwrapperconnection.c
|
|
gio/gtestdbus.c
|
|
gio/gthemedicon.c
|
|
gio/gthreadedresolver.c
|
|
gio/gthreadedsocketservice.c
|
|
gio/gtlscertificate.c
|
|
gio/gtlsclientconnection.c
|
|
gio/gtlsconnection.c
|
|
gio/gtlsfiledatabase.c
|
|
gio/gtlspassword.c
|
|
gio/gtlsserverconnection.c
|
|
gio/gunionvolumemonitor.c
|
|
gio/gunixconnection.c
|
|
gio/gunixcredentialsmessage.c
|
|
gio/gunixinputstream.c
|
|
gio/gunixmount.c
|
|
gio/gunixmounts.c
|
|
gio/gunixoutputstream.c
|
|
gio/gunixsocketaddress.c
|
|
gio/gunixvolume.c
|
|
gio/gunixvolumemonitor.c
|
|
gio/gvfs.c
|
|
gio/gvolume.c
|
|
gio/gvolumemonitor.c
|
|
gio/gwin32appinfo.c
|
|
gio/gwin32inputstream.c
|
|
gio/gwin32outputstream.c
|
|
gio/gzlibcompressor.c
|
|
gio/gzlibdecompressor.c
|
|
gio/tests/gdbus-daemon.c
|
|
gio/win32/gwinhttpfile.c
|
|
glib/gatomic.c
|
|
glib/gbookmarkfile.c
|
|
glib/gconvert.c
|
|
glib/gdatetime.c
|
|
glib/gdir.c
|
|
glib/gfileutils.c
|
|
glib/giochannel.c
|
|
glib/giowin32.c
|
|
glib/gkeyfile.c
|
|
glib/glib.py
|
|
glib/gmappedfile.c
|
|
glib/gmarkup.c
|
|
glib/goption.c
|
|
glib/gregex.c
|
|
glib/gshell.c
|
|
glib/gspawn.c
|
|
glib/gspawn-win32.c
|
|
glib/gutf8.c
|
|
glib/gutils.c
|
|
gobject/gbinding.c
|