1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-07-29 05:13:30 +02:00
Files
build
docs
reference
gio
xml
.gitignore
Makefile.am
gapplication.xml
gdbus-codegen.xml
gdbus.xml
gio-docs.xml
gio-querymodules.xml
gio-sections.txt
gio.types
gio.xml
glib-compile-resources.xml
glib-compile-schemas.xml
gresource.xml
gsettings.xml
gvfs-overview.odg
gvfs-overview.png
menu-example.png
menu-model.png
meson.build
migrating-gconf.xml
migrating-gdbus.xml
migrating-gnome-vfs.xml
migrating-posix.xml
overview.xml
version.xml.in
glib
gobject
.gitignore
AUTHORS
COPYING
ChangeLog
Makefile.am
NEWS
Makefile.am
debugging.txt
macros.txt
gio
glib
gmodule
gobject
gthread
m4macros
po
subprojects
tests
win32
.dir-locals.el
.gitattributes
.gitignore
AUTHORS
COPYING
ChangeLog.pre-1-2
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-14
ChangeLog.pre-2-16
ChangeLog.pre-2-18
ChangeLog.pre-2-2
ChangeLog.pre-2-20
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
HACKING
INSTALL.in
Makefile.am
NEWS
NEWS.pre-1-3
README.commits
README.in
README.rationale
README.win32
acglib.m4
acinclude.m4
autogen.sh
check-abis.sh
config.h.meson
config.h.win32.in
configure.ac
gio-2.0.pc.in
gio-unix-2.0.pc.in
gio-windows-2.0.pc.in
glib-2.0.pc.in
glib-gettextize.in
glib-tap.mk
glib-zip.in
glib.doap
glib.mk
glib.supp
gmodule-2.0.pc.in
gmodule-export-2.0.pc.in
gmodule-no-export-2.0.pc.in
gobject-2.0.pc.in
gthread-2.0.pc.in
meson.build
meson_options.txt
msvc_recommended_pragmas.h
sanity_check
tap-driver.sh
tap-test
glib/docs/reference/gio
Colin Walters 4808a957b5 GFile: Add g_file_peek_path()
This is a variant of g_file_get_path() which returns a const string to
the caller, rather than transferring ownership.

I've been carrying `gs_file_get_path_cached()` in libgsystem and it
has seen a lot of use in the ostree and flatpak codebases.  There are
probably others too.

I think language bindings like Python/Gjs could also use this to avoid
an extra malloc (i.e. we could transparently replace
`g_file_get_path()` with `g_file_peek_path()`.

(Originally by Colin Walters. Tweaked by Philip Withnall to update to
2.56, change the function name and drop the locking.)

https://bugzilla.gnome.org/show_bug.cgi?id=767976
2018-01-15 18:26:56 +00:00
..
2017-07-13 19:03:39 -04:00
2013-10-17 10:12:27 -04:00
2018-01-15 18:26:56 +00:00
2016-07-01 16:01:34 -04:00
2011-12-08 18:05:12 -05:00
2011-12-08 18:05:12 -05:00
2013-01-01 10:25:07 -05:00
2016-07-16 20:32:16 -04:00