const gchar *g_module_check_init(GModule *module) { (void)module; /* Get configuration options */ popout_unlock = mce_conf_get_bool(MCE_CONF_TKLOCK_GROUP, MCE_CONF_CAMERA_POPOUT_UNLOCK, DEFAULT_CAMERA_POPOUT_UNLOCK); /* Register I/O monitors */ camera_active_state_iomon_id = mce_io_mon_register_string(-1, CAMERA_ACTIVE_STATE_PATH, MCE_IO_ERROR_POLICY_IGNORE, TRUE, camera_active_state_iomon_input_cb, camera_active_state_iomon_delete_cb); camera_popout_state_iomon_id = mce_io_mon_register_string(-1, CAMERA_POPOUT_STATE_PATH, MCE_IO_ERROR_POLICY_IGNORE, TRUE, camera_popout_state_iomon_input_cb, camera_popout_state_iomon_delete_cb); return NULL; }
/** Get default radio states from customisable settings * * @return radio states */ static guint mrs_get_default_radio_states(void) { guint default_radio_states = 0; for( size_t i = 0; i < RADIO_STATES_COUNT; ++i ) { gboolean flag = mce_conf_get_bool(MCE_CONF_RADIO_STATES_GROUP, radio_state_names[i], radio_state_defaults[i]); if( flag ) { default_radio_states |= radio_state_flags[i]; } } mce_log(LL_DEBUG, "default_radio_states = %s", radio_states_repr(default_radio_states)); return default_radio_states; }