projects
/
systembsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(2) move on_name_lost() callback to appropriate commend-bounded region
[systembsd.git]
/
src
/
interfaces
/
logind
/
logind.c
diff --git
a/src/interfaces/logind/logind.c
b/src/interfaces/logind/logind.c
index de810576176f835af8f5162b7e92cc41fc40d8b8..bb740a72ef3e13f63d5cfb7fb22cd9a5cf85ea55 100644
(file)
--- a/
src/interfaces/logind/logind.c
+++ b/
src/interfaces/logind/logind.c
@@
-24,11
+24,12
@@
#include <glib-unix.h>
#include "logind-gen.h"
#include <glib-unix.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,
@@
-57,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,
@@
-91,15
+92,6
@@
static void logind_on_name_acquired(GDBusConnection *conn,
}
}
-/* --- end bus/name handlers, begin misc functions --- */
-
-/* free()'s */
-void logind_mem_clean() {
-
- g_ptr_array_foreach(logind_freeable, (GFunc) g_free, NULL);
- g_ptr_array_free(logind_freeable, TRUE);
-}
-
static void logind_on_name_lost(GDBusConnection *conn,
const gchar *name,
gpointer user_data) {
static void logind_on_name_lost(GDBusConnection *conn,
const gchar *name,
gpointer user_data) {
@@
-111,6
+103,15
@@
static void logind_on_name_lost(GDBusConnection *conn,
}
}
+/* --- end bus/name handlers, begin misc unix functions --- */
+
+/* free()'s */
+void logind_mem_clean() {
+
+ g_ptr_array_foreach(logind_freeable, (GFunc) g_free, NULL);
+ g_ptr_array_free(logind_freeable, TRUE);
+}
+
int main() {
guint bus_descriptor;
int main() {
guint bus_descriptor;