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
..
xml meson: Build all docs 2017-07-13 19:03:39 -04:00
.gitignore .gitignore updates for gsettings stuff 2010-04-27 17:04:57 -04:00
gapplication.xml New gapplication(1) tool 2013-10-17 10:12:27 -04:00
gdbus-codegen.xml gdbus-codegen: Support for separate C header and code generation 2018-01-15 16:11:17 +01:00
gdbus.xml gdbus-tool: Add a command to wait for a well-known name on the bus 2017-03-28 11:23:27 +01:00
gio-docs.xml docs: Split GSocketConnectable/GProxyAddressEnumerator documentation 2017-12-12 11:42:45 +00:00
gio-querymodules.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
gio-sections.txt GFile: Add g_file_peek_path() 2018-01-15 18:26:56 +00:00
gio.types Make GUnixMountEntry and GUnixMountPoint boxed types 2017-03-28 18:03:08 +02:00
gio.xml Document the gio tool 2016-07-01 16:01:34 -04:00
glib-compile-resources.xml glib-compile-resources: Add --generate-phony-targets flag 2016-11-20 13:33:21 -05:00
glib-compile-schemas.xml glib-compile-schemas: Add a --version option 2016-10-06 21:08:25 +01:00
gresource.xml gresource: fix documentation typo 2017-08-22 08:58:56 +01:00
gsettings.xml Add ‘gsettings list-schemas --print-paths’ option 2018-01-05 13:01:03 +00:00
gvfs-overview.odg update the overview image of the gio docs 2009-06-08 17:29:22 +02:00
gvfs-overview.png update the overview image of the gio docs 2009-06-08 17:29:22 +02:00
Makefile.am docs: Add version and deprecation decorators to gtk-doc ignore list 2017-11-07 14:50:23 +00:00
menu-example.png Add GMenuModel 2011-12-08 18:05:12 -05:00
menu-model.png Add GMenuModel 2011-12-08 18:05:12 -05:00
meson.build Meson: Add missing options and conform to naming guidelines 2017-12-19 14:56:11 -05:00
migrating-gconf.xml Drop a broken link 2013-01-01 10:25:07 -05:00
migrating-gdbus.xml docs: trivial typo fixes 2016-07-16 20:32:16 -04:00
migrating-gnome-vfs.xml Add a migration chapter for dbus bits 2010-05-06 17:58:29 -04:00
migrating-posix.xml Remove duplicate copies of migration docs 2010-05-27 13:07:54 -04:00
overview.xml Trivial: documentation wording fix 2016-06-30 08:58:41 -04:00
version.xml.in gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00