aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorkremlin- <ian@kremlin.cc>2014-06-27 07:18:26 +0800
committerkremlin- <ian@kremlin.cc>2014-06-27 07:18:26 +0800
commit36961b20f9c3d6698db46c1bea91ed93f7122d9c (patch)
treebc2813a11c4e2ae42e418b741fbe83fee5757f02 /src/main.h
parent10aafb894ef3d0c148e686179e1c350cd05361e1 (diff)
downloadsystembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.tar
systembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.tar.gz
systembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.tar.bz2
systembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.tar.lz
systembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.tar.xz
systembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.tar.zst
systembsd-36961b20f9c3d6698db46c1bea91ed93f7122d9c.zip
cut out install code that should be handled in makefile
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/main.h b/src/main.h
deleted file mode 100644
index 8d1c257..0000000
--- a/src/main.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2014 Ian Sutton <ian@kremlin.cc>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <gio/gio.h>
-
-//TODO change this to config dir, not data dir
-gboolean install_conf() {
- gchar *our_conf_uri = "systemd-utl/xml-conf/";
- gchar **data_dir = g_get_system_data_dirs();
-
- if(g_strcmp0(data_dir[0], NULL)) {
- const gchar our_conf_path[256];
- g_snprintf(our_conf_path, sizeof our_conf_path, "%s%s", *data_dir, our_conf_uri);
- GError **errors;
-
- /*TODO permissions w/ this */
- g_mkdir_with_parents(our_conf_path, 0644);
-
- return FALSE;
- //return (errors[0] == NULL);
-
- } else
- return FALSE;
-}