projects
/
systembsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(1) add <interface>.h and #include it in corresponding .c
[systembsd.git]
/
src
/
interfaces
/
logind
/
logind.c
diff --git
a/src/interfaces/logind/logind.c
b/src/interfaces/logind/logind.c
index 7f8586d2942a9ccc05d0fd7d9beccc304b2bd9a4..ec55156d6704f98d21ab5b6f9aadcfdddf8d2cf9 100644
(file)
--- a/
src/interfaces/logind/logind.c
+++ b/
src/interfaces/logind/logind.c
@@
-21,13
+21,15
@@
#include <string.h>
#include <glib/gprintf.h>
#include <string.h>
#include <glib/gprintf.h>
+#include <glib-unix.h>
#include "logind-gen.h"
#include "logind-gen.h"
+#include "logind.h"
GPtrArray *logind_freeable;
Login1Manager *logind_interf;
GPtrArray *logind_freeable;
Login1Manager *logind_interf;
-/* --- begin method/property/signal code --- */
+/* --- begin method/property/
dbus
signal code --- */
/*static gboolean
on_handle_set_hostname(Login1Manager *hn1_passed_interf,
/*static gboolean
on_handle_set_hostname(Login1Manager *hn1_passed_interf,
@@
-56,7
+58,7
@@
our_get_hostname() {
return strncpy(ret, hostname_buf, hostname_divider);
}*/
return strncpy(ret, hostname_buf, hostname_divider);
}*/
-/* --- end method/property/signal code, begin bus/name handlers --- */
+/* --- end method/property/
dbus
signal code, begin bus/name handlers --- */
static void logind_on_bus_acquired(GDBusConnection *conn,
const gchar *name,
static void logind_on_bus_acquired(GDBusConnection *conn,
const gchar *name,
@@
-90,7
+92,7
@@
static void logind_on_name_acquired(GDBusConnection *conn,
}
}
-/* --- end bus/name handlers, begin misc functions --- */
+/* --- end bus/name handlers, begin misc
unix
functions --- */
/* free()'s */
void logind_mem_clean() {
/* free()'s */
void logind_mem_clean() {