mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
5b68b49b20
The main rationale for adding it was to avoid having gnome-shell mmap'ing /etc/localtime once a second. However, we can just as easily run inotify there, and given no one else was clamoring for a way to detect when the time zone changes, I don't see a need for public API here - at least not yet. In the bigger picture, I just don't believe that the vast majority of applications are going to go out of their way to instantiate and keep around a random GTimeZoneMonitor class. And if they do, it's has the side effect that for other bits of code in the process, local GDateTime instances may start varying again! So, if code can't rely on local GDateTime instances being in a consistent state anyways, let's just do that always. The documentation now says that this is the case. Applications have always been able to work in a consistent local time zone by instantiating a zone and then using it for GDateTime constructors. We fix the "gnome-shell stats /etc/localtime once a second" issue by using timerfd (in glib) and inotify (in gnome-shell). https://bugzilla.gnome.org/show_bug.cgi?id=655129
149 lines
4.6 KiB
C
149 lines
4.6 KiB
C
/* GIO - GLib Input, Output and Streaming Library
|
|
*
|
|
* Copyright (C) 2006-2007 Red Hat, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General
|
|
* Public License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*
|
|
* Author: Alexander Larsson <alexl@redhat.com>
|
|
*/
|
|
|
|
#ifndef __G_IO_H__
|
|
#define __G_IO_H__
|
|
|
|
#define __GIO_GIO_H_INSIDE__
|
|
|
|
#include <gio/giotypes.h>
|
|
|
|
#include <gio/gappinfo.h>
|
|
#include <gio/gaction.h>
|
|
#include <gio/gsimpleaction.h>
|
|
#include <gio/gactiongroup.h>
|
|
#include <gio/gsimpleactiongroup.h>
|
|
#include <gio/gapplication.h>
|
|
#include <gio/gapplicationcommandline.h>
|
|
#include <gio/gasyncinitable.h>
|
|
#include <gio/gasyncresult.h>
|
|
#include <gio/gbufferedinputstream.h>
|
|
#include <gio/gbufferedoutputstream.h>
|
|
#include <gio/gcancellable.h>
|
|
#include <gio/gcharsetconverter.h>
|
|
#include <gio/gcontenttype.h>
|
|
#include <gio/gconverter.h>
|
|
#include <gio/gconverterinputstream.h>
|
|
#include <gio/gconverteroutputstream.h>
|
|
#include <gio/gcredentials.h>
|
|
#include <gio/gdatainputstream.h>
|
|
#include <gio/gdataoutputstream.h>
|
|
#include <gio/gdbusaddress.h>
|
|
#include <gio/gdbusauthobserver.h>
|
|
#include <gio/gdbusconnection.h>
|
|
#include <gio/gdbuserror.h>
|
|
#include <gio/gdbusintrospection.h>
|
|
#include <gio/gdbusmessage.h>
|
|
#include <gio/gdbusmethodinvocation.h>
|
|
#include <gio/gdbusnameowning.h>
|
|
#include <gio/gdbusnamewatching.h>
|
|
#include <gio/gdbusproxy.h>
|
|
#include <gio/gdbusserver.h>
|
|
#include <gio/gdbusutils.h>
|
|
#include <gio/gdrive.h>
|
|
#include <gio/gemblemedicon.h>
|
|
#include <gio/gfileattribute.h>
|
|
#include <gio/gfileenumerator.h>
|
|
#include <gio/gfile.h>
|
|
#include <gio/gfileicon.h>
|
|
#include <gio/gfileinfo.h>
|
|
#include <gio/gfileinputstream.h>
|
|
#include <gio/gfileiostream.h>
|
|
#include <gio/gfilemonitor.h>
|
|
#include <gio/gfilenamecompleter.h>
|
|
#include <gio/gfileoutputstream.h>
|
|
#include <gio/gfilterinputstream.h>
|
|
#include <gio/gfilteroutputstream.h>
|
|
#include <gio/gicon.h>
|
|
#include <gio/ginetaddress.h>
|
|
#include <gio/ginetsocketaddress.h>
|
|
#include <gio/ginitable.h>
|
|
#include <gio/ginputstream.h>
|
|
#include <gio/gioenums.h>
|
|
#include <gio/gioenumtypes.h>
|
|
#include <gio/gioerror.h>
|
|
#include <gio/giomodule.h>
|
|
#include <gio/gioscheduler.h>
|
|
#include <gio/giostream.h>
|
|
#include <gio/gloadableicon.h>
|
|
#include <gio/gmemoryinputstream.h>
|
|
#include <gio/gmemoryoutputstream.h>
|
|
#include <gio/gmount.h>
|
|
#include <gio/gmountoperation.h>
|
|
#include <gio/gnativevolumemonitor.h>
|
|
#include <gio/gnetworkaddress.h>
|
|
#include <gio/gnetworkservice.h>
|
|
#include <gio/goutputstream.h>
|
|
#include <gio/gpermission.h>
|
|
#include <gio/gpollableinputstream.h>
|
|
#include <gio/gpollableoutputstream.h>
|
|
#include <gio/gproxy.h>
|
|
#include <gio/gproxyaddress.h>
|
|
#include <gio/gproxyaddressenumerator.h>
|
|
#include <gio/gproxyresolver.h>
|
|
#include <gio/gresolver.h>
|
|
#include <gio/gseekable.h>
|
|
#include <gio/gsettings.h>
|
|
#include <gio/gsimpleasyncresult.h>
|
|
#include <gio/gsimplepermission.h>
|
|
#include <gio/gsocketaddressenumerator.h>
|
|
#include <gio/gsocketaddress.h>
|
|
#include <gio/gsocketclient.h>
|
|
#include <gio/gsocketconnectable.h>
|
|
#include <gio/gsocketconnection.h>
|
|
#include <gio/gsocketcontrolmessage.h>
|
|
#include <gio/gsocket.h>
|
|
#include <gio/gsocketlistener.h>
|
|
#include <gio/gsocketservice.h>
|
|
#include <gio/gsrvtarget.h>
|
|
#include <gio/gtcpconnection.h>
|
|
#include <gio/gtcpwrapperconnection.h>
|
|
#include <gio/gthemedicon.h>
|
|
#include <gio/gthreadedsocketservice.h>
|
|
#include <gio/gtlsbackend.h>
|
|
#include <gio/gtlscertificate.h>
|
|
#include <gio/gtlsclientconnection.h>
|
|
#include <gio/gtlsconnection.h>
|
|
#include <gio/gtlsdatabase.h>
|
|
#include <gio/gtlsfiledatabase.h>
|
|
#include <gio/gtlsinteraction.h>
|
|
#include <gio/gtlsserverconnection.h>
|
|
#include <gio/gtlspassword.h>
|
|
#include <gio/gvfs.h>
|
|
#include <gio/gvolume.h>
|
|
#include <gio/gvolumemonitor.h>
|
|
#include <gio/gzlibcompressor.h>
|
|
#include <gio/gzlibdecompressor.h>
|
|
#include <gio/gdbusinterface.h>
|
|
#include <gio/gdbusinterfaceskeleton.h>
|
|
#include <gio/gdbusobject.h>
|
|
#include <gio/gdbusobjectskeleton.h>
|
|
#include <gio/gdbusobjectproxy.h>
|
|
#include <gio/gdbusobjectmanager.h>
|
|
#include <gio/gdbusobjectmanagerclient.h>
|
|
#include <gio/gdbusobjectmanagerserver.h>
|
|
|
|
#undef __GIO_GIO_H_INSIDE__
|
|
|
|
#endif /* __G_IO_H__ */
|
|
|