X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig.h;h=3fdf1835fb0e357bb2ef1bdccaf1f1e5205e9be3;hb=76b67a1868f8e9f47121d87819147ac157889432;hp=d40b761776cbf33bda472af4367a2f360a226469;hpb=d90aa67d8dbd325da6a1f42a915cfa8724c5cd27;p=systembsd.git diff --git a/src/config.h b/src/config.h index d40b761..3fdf183 100644 --- a/src/config.h +++ b/src/config.h @@ -1,34 +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; + +/* manually increment this if adding new functionality/config files */ +static const guint XML_FILE_COUNT = 8; -static gchar ***xml_contents[] = { +/* i'm not sure we even need to load in ispect xml.. +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 +};*/ - &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 @@ -42,15 +30,3 @@ static const gchar *timedated_dbus_sum = "d7d67482a821cbc7a6ab3a68f1c00e0dc61a static const gchar *timedated_ispect_sum = "f576cb908636a285c9cd2e42a71ad243a0d5eb0ff12398f0627cce56c15a8268"; #endif - -static gboolean set_xml_descriptors() { - -} - -static gboolean populate_xml_data_dir() { - -} - -static gboolean read_xml_from_installconf() { - -}