static const char *ATT_SENSOR_ENABLED = "enabled";
static const char *ATT_SENSOR_NAME = "name";
static const char *ATT_SENSOR_APPINDICATOR_DISABLED = "appindicator/disabled";
+static const char *ATT_SENSOR_POSITION = "position";
static const char *KEY_SENSOR_UPDATE_INTERVAL
= "/apps/psensor/sensor/update_interval";
free(key);
}
+int config_get_sensor_position(const char *sid)
+{
+ char *key;
+ int pos;
+
+ key = get_sensor_att_key(sid, ATT_SENSOR_POSITION);
+ pos = gconf_client_get_int(client, key, NULL);
+ free(key);
+
+ return pos;
+}
+
+void config_set_sensor_position(const char *sid, int pos)
+{
+ char *key;
+
+ key = get_sensor_att_key(sid, ATT_SENSOR_POSITION);
+ gconf_client_set_int(client, key, pos, NULL);
+ free(key);
+}
+
bool config_is_appindicator_enabled(const char *sid)
{
char *key;
int config_get_slog_interval();
+int config_get_sensor_position(const char *);
+void config_set_sensor_position(const char *, int);
+
#endif