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
/
localed
/
localed.c
diff --git
a/src/interfaces/localed/localed.c
b/src/interfaces/localed/localed.c
index 5ecd79095483c06e11ab9a1bb3db6744a7f40160..a40e4580a400c1c679a662b4915a62e34caa0f69 100644
(file)
--- a/
src/interfaces/localed/localed.c
+++ b/
src/interfaces/localed/localed.c
@@
-21,13
+21,15
@@
#include <string.h>
#include <glib/gprintf.h>
#include <string.h>
#include <glib/gprintf.h>
+#include <glib-unix.h>
#include "localed-gen.h"
#include "localed-gen.h"
+#include "localed.h"
GPtrArray *localed_freeable;
Locale1 *localed_interf;
GPtrArray *localed_freeable;
Locale1 *localed_interf;
-/* --- begin method/property/signal code --- */
+/* --- begin method/property/
dbus
signal code --- */
/*static gboolean
on_handle_set_hostname(Locale1 *hn1_passed_interf,
/*static gboolean
on_handle_set_hostname(Locale1 *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 localed_on_bus_acquired(GDBusConnection *conn,
const gchar *name,
static void localed_on_bus_acquired(GDBusConnection *conn,
const gchar *name,
@@
-90,15
+92,6
@@
static void localed_on_name_acquired(GDBusConnection *conn,
}
}
-/* --- end bus/name handlers, begin misc functions --- */
-
-/* free()'s */
-void localed_mem_clean() {
-
- g_ptr_array_foreach(localed_freeable, (GFunc) g_free, NULL);
- g_ptr_array_free(localed_freeable, TRUE);
-}
-
static void localed_on_name_lost(GDBusConnection *conn,
const gchar *name,
gpointer user_data) {
static void localed_on_name_lost(GDBusConnection *conn,
const gchar *name,
gpointer user_data) {
@@
-110,6
+103,15
@@
static void localed_on_name_lost(GDBusConnection *conn,
}
}
+/* --- end bus/name handlers, begin misc unix functions --- */
+
+/* free()'s */
+void localed_mem_clean() {
+
+ g_ptr_array_foreach(localed_freeable, (GFunc) g_free, NULL);
+ g_ptr_array_free(localed_freeable, TRUE);
+}
+
int main() {
guint bus_descriptor;
int main() {
guint bus_descriptor;