From 4830cd6115276daf6de2d7b4055992a009d03ae7 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 12 Jun 2014 18:08:59 +0200 Subject: [PATCH] dispatcher/trivial: move code Signed-off-by: Thomas Haller --- src/nm-dispatcher.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/nm-dispatcher.c b/src/nm-dispatcher.c index 73b2041dc2..2ab867c777 100644 --- a/src/nm-dispatcher.c +++ b/src/nm-dispatcher.c @@ -37,6 +37,18 @@ static gboolean do_dispatch = TRUE; static GHashTable *requests = NULL; +typedef struct { + const char *dir; + GFileMonitor *monitor; + gboolean has_scripts; +} Monitor; + +static Monitor monitors[3] = { + { NMD_SCRIPT_DIR_DEFAULT, NULL, TRUE }, + { NMD_SCRIPT_DIR_PRE_UP, NULL, TRUE }, + { NMD_SCRIPT_DIR_PRE_DOWN, NULL, TRUE } +}; + static void dump_object_to_props (GObject *object, GHashTable *hash) { @@ -643,18 +655,6 @@ nm_dispatcher_call_cancel (guint call_id) } } -typedef struct { - const char *dir; - GFileMonitor *monitor; - gboolean has_scripts; -} Monitor; - -static Monitor monitors[3] = { - { NMD_SCRIPT_DIR_DEFAULT, NULL, TRUE }, - { NMD_SCRIPT_DIR_PRE_UP, NULL, TRUE }, - { NMD_SCRIPT_DIR_PRE_DOWN, NULL, TRUE } -}; - static void dispatcher_dir_changed (GFileMonitor *monitor, GFile *file,