Split out xdg.{c,h}

This commit is contained in:
2021-11-01 05:08:55 +01:00
parent 6eecee6b91
commit c8df325c70
5 changed files with 210 additions and 175 deletions

View File

@@ -37,6 +37,8 @@
#define WUFFS_CONFIG__MODULE__ZLIB
#include "wuffs-mirror-release-c/release/c/wuffs-v0.3.c"
#include "xdg.h"
// A subset of shared-mime-info that produces an appropriate list of
// file extensions. Chiefly motivated by the suckiness of RAW images:
// someone else will maintain the list of file extensions for us.
@@ -448,9 +450,6 @@ fastiv_io_open(const gchar *path, GError **error)
#include <glib/gstdio.h>
#include <png.h>
// TODO(p): Reorganize the sources.
gchar *get_xdg_home_dir(const char *var, const char *default_);
static void
redirect_png_error(png_structp pngp, const char *error)
{