Commit a8b0b339 authored by spiiroin's avatar spiiroin

[control] Make internal module state data static

Global data is problematic in general and these values have accessor
functions anyway and thus there is no reason for extern visibility.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 4873888f
......@@ -62,13 +62,13 @@ bool control_get_connection_state (void);
*
* What was the last mode signaled over D-Bus.
*/
char *control_external_mode = NULL;
static char *control_external_mode = NULL;
/** The logical mode name
*
* Full set of valid modes can occur here
*/
char *control_internal_mode = NULL;
static char *control_internal_mode = NULL;
/** Connection status
*
......@@ -76,7 +76,7 @@ char *control_internal_mode = NULL;
* - control_set_cable_state()
* - control_get_connection_state()
*/
cable_state_t control_cable_state = CABLE_STATE_UNKNOWN;
static cable_state_t control_cable_state = CABLE_STATE_UNKNOWN;
/* ========================================================================= *
* Functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment