gio: Rename gcontenttype.c to gcontenttype-fdo.c

This reflects its status as actually platform-dependent: it’s only built
on systems using the freedesktop.org content type system.

It makes the file naming match up with other platform-specific
implementations, such as `gcontenttype-win32.c` and
`gcontenttype-osx.m`.

A subsequent commit will introduce a platform-independent high level API
wrapper so that the introspection annotations from this file can be
reused between platforms.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3399
This commit is contained in:
Philip Withnall 2024-07-24 15:12:56 +02:00
parent bf630dd4fd
commit 7bec6327a2
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73
4 changed files with 3 additions and 3 deletions

View File

@ -405,7 +405,7 @@ if host_system != 'windows'
)
application_headers += files('gosxappinfo.h')
else
contenttype_sources += files('gcontenttype.c')
contenttype_sources += files('gcontenttype-fdo.c')
unix_sources += files('gdesktopappinfo.c')
gio_unix_include_headers += files('gdesktopappinfo.h')
launch_desktop_sources = files('gio-launch-desktop.c')

View File

@ -12,7 +12,7 @@ gio/gbufferedoutputstream.c
gio/gbytesicon.c
gio/gcancellable.c
gio/gcharsetconverter.c
gio/gcontenttype.c
gio/gcontenttype-fdo.c
gio/gcontenttype-win32.c
gio/gconverter.c
gio/gconverterinputstream.c

View File

@ -896,7 +896,7 @@
fun:g_get_home_dir
}
# gcontenttype.c caches a one-time allocation global array of @global_mime_dirs.
# gcontenttype-fdo.c caches a one-time allocation global array of @global_mime_dirs.
{
content_type_mime_dirs_realloc
Memcheck:Leak