From: kremlin Date: Thu, 26 Jun 2014 06:08:06 +0000 (-0500) Subject: drop persistent file handlers, use rc.d 'reload' instead X-Git-Tag: hostnamed-copyable~11 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc20e918f1f7baf2a349e0352bf6658e5daf6a23;p=systembsd.git drop persistent file handlers, use rc.d 'reload' instead --- diff --git a/src/config.h b/src/config.h index d40b761..a209a1c 100644 --- a/src/config.h +++ b/src/config.h @@ -1,35 +1,22 @@ -/* manually increment this if adding new functionality/config files */ -static const guint XML_FILE_COUNT = 8; - - -/* our buffers for xml config file descriptors */ -static int hostnamed_ispect_xml_descr, hostnamed_dbus_xml_descr, - localed_ispect_xml_descr, localed_dbus_xml_descr, - timedated_ispect_xml_descr, timedated_dbus_xml_descr, - logind_ispect_xml_descr, logind_dbus_xml_descr; - -static int *xml_descriptors[] = { - - &hostnamed_ispect_xml_descr, &hostnamed_dbus_xml_descr, - &localed_ispect_xml_descr, &localed_dbus_xml_descr, - &timedated_ispect_xml_descr, &timedated_dbus_xml_descr, - &logind_ispect_xml_descr, &logind_dbus_xml_descr -}; - /*our buffers for xml config file contents */ static gchar **hostnamed_ispect_xml, **hostnamed_dbus_xml, - **localed_ispect_xml, **localed_dbus_xml, - **timedated_ispect_xml, **timedated_dbus_xml, - **logind_ispect_xml, **logind_dbus_xml; + **localed_ispect_xml, **localed_dbus_xml, + **timedated_ispect_xml, **timedated_dbus_xml, + **logind_ispect_xml, **logind_dbus_xml; -static gchar ***xml_contents[] = { +/* manually increment this if adding new functionality/config files */ +static const guint XML_FILE_COUNT = 8; - &hostnamed_ispect_xml, &hostnamed_dbus_xml, - &localed_ispect_xml, &localed_dbus_xml, - &timedated_ispect_xml, &timedated_dbus_xml, - &logind_ispect_xml, &logind_dbus_xml +static gchar **xml_contents[] = { + hostnamed_ispect_xml, hostnamed_dbus_xml, + localed_ispect_xml, localed_dbus_xml, + timedated_ispect_xml, timedated_dbus_xml, + logind_ispect_xml, logind_dbus_xml }; +/* TODO ifdef allowed editable xml only take files that meet exact sizes + * of ones hashed below */ + #ifndef ALLOW_EDITED_XML static const gchar *hostnamed_dbus_sum = "ad7536541463e426388c7562b0e7a693c3b646539b3ae163a7caf6ad95f10e08"; @@ -43,10 +30,6 @@ static const gchar *timedated_ispect_sum = "f576cb908636a285c9cd2e42a71ad243a0d5 #endif -static gboolean set_xml_descriptors() { - -} - static gboolean populate_xml_data_dir() { }