finish migrating old code to work with gdbus-codegen types, cleaned up config IO...
[systembsd.git] / src / main.h
CommitLineData
faab2eee 1#include <gio/gio.h>
2
39df6847 3//TODO change this to config dir, not data dir
929eb2a9 4gboolean install_conf() {
5 gchar *our_conf_uri = "systemd-utl/xml-conf/";
6 gchar **data_dir = g_get_system_data_dirs();
7
8 if(g_strcmp0(data_dir[0], NULL)) {
9 const gchar our_conf_path[256];
10 g_snprintf(our_conf_path, sizeof our_conf_path, "%s%s", *data_dir, our_conf_uri);
11 GError **errors;
12
13 /*TODO permissions w/ this */
14 g_mkdir_with_parents(our_conf_path, 0644);
fc22d298 15
d1e1db9e 16 return FALSE;
17 //return (errors[0] == NULL);
929eb2a9 18
19 } else
20 return FALSE;
21}