change polkit-auth.{c,h} to util.{c,h}
authorkremlin <kremlin@juliana.kremlin.cc>
Mon, 25 Aug 2014 03:43:53 +0000 (22:43 -0500)
committerkremlin <kremlin@juliana.kremlin.cc>
Mon, 25 Aug 2014 03:43:53 +0000 (22:43 -0500)
we are going to include the /etc/os-release changing
functions in here.

Makefile
src/interfaces/hostnamed/hostnamed.c
src/interfaces/localed/localed.c
src/interfaces/logind/logind.c
src/interfaces/timedated/timedated.c
src/util.c [moved from src/polkit-auth.c with 99% similarity]
src/util.h [moved from src/polkit-auth.h with 100% similarity]

index 2157aa769330ee2c9e8216eb764452e7d70ec123..91eceafd440de02ca95f273e7b87efdb02b2f1c8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ _build_genfile_objs: _generate_genfiles _build_auth_obj
        $(CC) -o bin/obj/logind-gen.o    $(CFLAGS) $(GLIBOF) -c $(INTFDIR)/logind/logind-gen.c
 
 _build_auth_obj:
-       $(CC) -o bin/obj/polkit-auth.o $(CFLAGS) $(GLIBOF) -c $(SRCDIR)/polkit-auth.c
+       $(CC) -o bin/obj/polkit-auth.o $(CFLAGS) $(GLIBOF) -c $(SRCDIR)/util.c
 
 _generate_genfiles:
        $(INVOKE_GENFILE_SCRIPT) hostnamed
index 81200e73a92ab0fec3958c80f883e7fbe79cfc7b..f3a6372a979ae00dbec2693bfbd7933371c747fe 100644 (file)
@@ -34,7 +34,7 @@
 #include "hostnamed-gen.h"
 #include "hostnamed.h"
 
-#include "../../polkit-auth.h"
+#include "../../util.h"
 
 /* format: {
  *           (1) string to be matched against runtime machine's sysctl output.
index 33769a3f06a4ba3449533d8c466ae8a098058a5b..da690afe28223ac338f44497f2edea396c8ebda0 100644 (file)
@@ -28,7 +28,7 @@
 #include "localed-gen.h"
 #include "localed.h"
 
-#include "../../polkit-auth.h"
+#include "../../util.h"
 
 GPtrArray *localed_freeable;
 Locale1 *localed_interf;
index c4456654e4830e98955e6419026b176f8dd4bb2b..02323d05fe92d7267b4d8d2a8aa94870f98e243f 100644 (file)
@@ -28,7 +28,7 @@
 #include "logind-gen.h"
 #include "logind.h"
 
-#include "../../polkit-auth.h"
+#include "../../util.h"
 
 GPtrArray *logind_freeable;
 Login1Manager *logind_interf;
index f76850c4f6fadd270307b4c0c15ffb96c0e5e4fe..bda7098294d47611949a3e0eb4f2c15931d1a9df 100644 (file)
@@ -28,7 +28,7 @@
 #include "timedated-gen.h"
 #include "timedated.h"
 
-#include "../../polkit-auth.h"
+#include "../../util.h"
 
 GPtrArray *timedated_freeable;
 Timedate1 *timedated_interf;
similarity index 99%
rename from src/polkit-auth.c
rename to src/util.c
index f967cd07026257267297eb21a2311830118e23d1..f228c9a941d044f37d4fdd3612e1c0037771af6a 100644 (file)
@@ -22,7 +22,7 @@
 #include <glib-unix.h>
 #include <polkit/polkit.h>
 
-#include "polkit-auth.h"
+#include "util.h"
 
 static gboolean is_valid_action(GList *action_list, const gchar *action) {
 
similarity index 100%
rename from src/polkit-auth.h
rename to src/util.h