Skip to content

Commit

Permalink
[settings] Use mce-setting module. MER#1554
Browse files Browse the repository at this point in the history
Change all mce-gconf.[ch] references to mce-setting.[ch].

No functional changes.
  • Loading branch information
spiiroin committed Mar 31, 2016
1 parent 1dbceef commit 07dd89f
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 71 deletions.
92 changes: 46 additions & 46 deletions .depend

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -278,7 +278,7 @@ MCE_CORE += powerkey.c
MCE_CORE += mce-fbdev.c
MCE_CORE += mce-dbus.c
MCE_CORE += mce-dsme.c
MCE_CORE += mce-gconf.c
MCE_CORE += mce-setting.c
MCE_CORE += mce-hbtimer.c
MCE_CORE += mce-wltimer.c
MCE_CORE += mce-wakelock.c
Expand Down Expand Up @@ -547,6 +547,7 @@ NORMALIZE_USES_SPC =\
mce-modules.h\
mce-sensorfw.c\
mce-sensorfw.h\
mce-setting.h\
mce-wakelock.c\
mce-wakelock.h\
mce-worker.c\
Expand Down Expand Up @@ -601,8 +602,7 @@ NORMALIZE_USES_TAB =\
mce-conf.h\
mce-dbus.c\
mce-dbus.h\
mce-gconf.c\
mce-gconf.h\
mce-setting.c\
mce-hal.c\
mce-hal.h\
mce-io.c\
Expand Down
2 changes: 1 addition & 1 deletion event-input.c
Expand Up @@ -29,7 +29,7 @@
#include "mce-lib.h"
#include "mce-conf.h"
#ifdef ENABLE_DOUBLETAP_EMULATION
# include "mce-gconf.h"
# include "mce-setting.h"
#endif
#include "mce-sensorfw.h"
#include "multitouch.h"
Expand Down
8 changes: 5 additions & 3 deletions mce-setting.c
@@ -1,10 +1,12 @@
/**
* @file mce-gconf.c
* Gconf handling code for the Mode Control Entity
* @file mce-setting.c
* Runtime setting handling code for the Mode Control Entity
* <p>
* Copyright © 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
* Copyright © 2012-2016 Jolla Ltd.
* <p>
* @author David Weinehall <david.weinehall@nokia.com>
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
Expand All @@ -19,7 +21,7 @@
* License along with mce. If not, see <http://www.gnu.org/licenses/>.
*/

#include "mce-gconf.h"
#include "mce-setting.h"

#include "mce-log.h"

Expand Down
14 changes: 8 additions & 6 deletions mce-setting.h
@@ -1,10 +1,12 @@
/**
* @file mce-gconf.h
* Headers for the GConf handling code for the Mode Control Entity
* @file mce-setting.h
* Headers for the runtime setting handling code for the Mode Control Entity
* <p>
* Copyright © 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
* Copyright © 2014-2016 Jolla Ltd.
* <p>
* @author David Weinehall <david.weinehall@nokia.com>
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
Expand All @@ -18,10 +20,10 @@
* You should have received a copy of the GNU Lesser General Public
* License along with mce. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MCE_GCONF_H_
#define _MCE_GCONF_H_
#ifndef MCE_SETTING_H_
# define MCE_SETTING_H_

#include "builtin-gconf.h"
# include "builtin-gconf.h"

gboolean mce_setting_has_key (const gchar *const key);
gboolean mce_setting_set_int (const gchar *const key, const gint value);
Expand All @@ -40,4 +42,4 @@ void mce_setting_track_string (const gchar *key, gchar **val, cons
gboolean mce_setting_init (void);
void mce_setting_exit (void);

#endif /* _MCE_GCONF_H_ */
#endif /* MCE_SETTING_H_ */
2 changes: 1 addition & 1 deletion mce.c
Expand Up @@ -25,7 +25,7 @@
#include "mce-fbdev.h"
#include "mce-hbtimer.h"
#include "mce-wltimer.h"
#include "mce-gconf.h"
#include "mce-setting.h"
#include "mce-dbus.h"
#include "mce-dsme.h"
#include "mce-modules.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/display.c
Expand Up @@ -28,7 +28,7 @@
#include "../mce-lib.h"
#include "../mce-fbdev.h"
#include "../mce-conf.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"
#include "../mce-dbus.h"
#include "../mce-sensorfw.h"
#include "../tklock.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/doubletap.c
Expand Up @@ -10,7 +10,7 @@
#include "../mce-log.h"
#include "../mce-io.h"
#include "../mce-conf.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"

#include <stdbool.h>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/filter-brightness-als.c
Expand Up @@ -31,7 +31,7 @@
#include "../mce-log.h"
#include "../mce-io.h"
#include "../mce-conf.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"
#include "../mce-dbus.h"
#include "../mce-sensorfw.h"
#include "../mce-wakelock.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/led.c
Expand Up @@ -27,7 +27,7 @@
#include "../mce-lib.h"
#include "../mce-hal.h"
#include "../mce-conf.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"
#include "../mce-dbus.h"
#include "../mce-hbtimer.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/memnotify.c
Expand Up @@ -24,7 +24,7 @@
#include "../mce.h"
#include "../mce-log.h"
#include "../mce-dbus.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"

#include <mce/dbus-names.h>

Expand Down
2 changes: 1 addition & 1 deletion modules/powersavemode.c
Expand Up @@ -24,7 +24,7 @@

#include "../mce.h"
#include "../mce-log.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"
#include "../mce-dbus.h"

#include <mce/dbus-names.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/proximity.c
Expand Up @@ -24,7 +24,7 @@

#include "../mce.h"
#include "../mce-log.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"
#include "../mce-sensorfw.h"

#include <gmodule.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/sensor-gestures.c
Expand Up @@ -22,7 +22,7 @@

#include "../mce.h"
#include "../mce-log.h"
#include "../mce-gconf.h"
#include "../mce-setting.h"
#include "../mce-dbus.h"
#include "../mce-sensorfw.h"
#include "display.h"
Expand Down
2 changes: 1 addition & 1 deletion powerkey.c
Expand Up @@ -29,7 +29,7 @@
#include "mce-log.h"
#include "mce-lib.h"
#include "mce-conf.h"
#include "mce-gconf.h"
#include "mce-setting.h"
#include "mce-dbus.h"
#include "mce-dsme.h"

Expand Down
2 changes: 1 addition & 1 deletion tests/ut/ut_display.c
Expand Up @@ -175,7 +175,7 @@ static void stub_mce_conf_teardown_unchecked(void)
}

/*
* mce-gconf.c stubs {{{1
* mce-setting.c stubs {{{1
*/

typedef struct stub__mce_setting_notifier_data
Expand Down
2 changes: 1 addition & 1 deletion tklock.c
Expand Up @@ -28,7 +28,7 @@
#include "mce-lib.h"
#include "mce-io.h"
#include "mce-conf.h"
#include "mce-gconf.h"
#include "mce-setting.h"
#include "mce-dbus.h"
#include "mce-hbtimer.h"
#include "evdev.h"
Expand Down

0 comments on commit 07dd89f

Please sign in to comment.