diff --git a/profiles/audio/manager.c b/profiles/audio/manager.c
index b137f28..8cf4b61 100644
--- a/profiles/audio/manager.c
+++ b/profiles/audio/manager.c
static int a2dp_source_connect(struct btd_device *dev,
struct btd_profile *profile)
{
- const gchar *path = device_get_path(dev);
+ const char *path = device_get_path(dev);
struct audio_device *audio_dev;
DBG("path %s", path);
static int a2dp_source_disconnect(struct btd_device *dev,
struct btd_profile *profile)
{
- const gchar *path = device_get_path(dev);
+ const char *path = device_get_path(dev);
struct audio_device *audio_dev;
DBG("path %s", path);
static int a2dp_sink_connect(struct btd_device *dev,
struct btd_profile *profile)
{
- const gchar *path = device_get_path(dev);
+ const char *path = device_get_path(dev);
struct audio_device *audio_dev;
DBG("path %s", path);
static int a2dp_sink_disconnect(struct btd_device *dev,
struct btd_profile *profile)
{
- const gchar *path = device_get_path(dev);
+ const char *path = device_get_path(dev);
struct audio_device *audio_dev;
DBG("path %s", path);
static int avrcp_control_connect(struct btd_device *dev,
struct btd_profile *profile)
{
- const gchar *path = device_get_path(dev);
+ const char *path = device_get_path(dev);
struct audio_device *audio_dev;
DBG("path %s", path);
static int avrcp_control_disconnect(struct btd_device *dev,
struct btd_profile *profile)
{
- const gchar *path = device_get_path(dev);
+ const char *path = device_get_path(dev);
struct audio_device *audio_dev;
DBG("path %s", path);
diff --git a/profiles/cups/main.c b/profiles/cups/main.c
index f990b93..2079812 100644
--- a/profiles/cups/main.c
+++ b/profiles/cups/main.c
};
static void element_start(GMarkupParseContext *context,
- const gchar *element_name,
- const gchar **attribute_names,
- const gchar **attribute_values,
+ const char *element_name,
+ const char **attribute_names,
+ const char **attribute_values,
gpointer user_data, GError **err)
{
struct context_data *ctx_data = user_data;
diff --git a/profiles/cyclingspeed/cyclingspeed.c b/profiles/cyclingspeed/cyclingspeed.c
index 941b593..f016131 100644
--- a/profiles/cyclingspeed/cyclingspeed.c
+++ b/profiles/cyclingspeed/cyclingspeed.c
"rear-dropout", "chainstay", "rear-wheel", "rear-hub"
};
-static const gchar *location2str(uint8_t value)
+static const char *location2str(uint8_t value)
{
if (value < G_N_ELEMENTS(location_enum))
return location_enum[value];
struct watcher *w = data;
struct measurement *m = user_data;
struct csc *csc = m->csc;
- const gchar *path = device_get_path(csc->dev);
+ const char *path = device_get_path(csc->dev);
DBusMessageIter iter;
DBusMessageIter dict;
DBusMessage *msg;
diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index e637420..44448c4 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
static struct hdp_device *create_health_device(struct btd_device *device)
{
struct btd_adapter *adapter = device_get_adapter(device);
- const gchar *path = device_get_path(device);
+ const char *path = device_get_path(device);
struct hdp_device *dev;
GSList *l;
diff --git a/profiles/heartrate/heartrate.c b/profiles/heartrate/heartrate.c
index 7ee9325..bc98683 100644
--- a/profiles/heartrate/heartrate.c
+++ b/profiles/heartrate/heartrate.c
"foot",
};
-static const gchar *location2str(uint8_t value)
+static const char *location2str(uint8_t value)
{
if (value < G_N_ELEMENTS(location_enum))
return location_enum[value];
struct watcher *w = data;
struct measurement *m = user_data;
struct heartrate *hr = m->hr;
- const gchar *path = device_get_path(hr->dev);
+ const char *path = device_get_path(hr->dev);
DBusMessageIter iter;
DBusMessageIter dict;
DBusMessage *msg;
diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index a9018f5..7f13abc 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
static void hog_remove(struct btd_profile *p, struct btd_device *device)
{
- const gchar *path = device_get_path(device);
+ const char *path = device_get_path(device);
DBG("path %s", path);
diff --git a/profiles/input/manager.c b/profiles/input/manager.c
index 145f8a0..a06edd2 100644
--- a/profiles/input/manager.c
+++ b/profiles/input/manager.c
static void input_remove(struct btd_device *device, const char *uuid)
{
- const gchar *path = device_get_path(device);
+ const char *path = device_get_path(device);
DBG("path %s", path);
static int hid_device_probe(struct btd_profile *p, struct btd_device *device,
GSList *uuids)
{
- const gchar *path = device_get_path(device);
+ const char *path = device_get_path(device);
const sdp_record_t *rec = btd_device_get_record(device, uuids->data);
DBG("path %s", path);
diff --git a/profiles/input/suspend-dummy.c b/profiles/input/suspend-dummy.c
index 4c56c84..75dd536 100644
--- a/profiles/input/suspend-dummy.c
+++ b/profiles/input/suspend-dummy.c
static gboolean read_fifo(GIOChannel *io, GIOCondition cond, gpointer user_data)
{
- gchar buffer[12];
+ char buffer[12];
gsize offset, left, bread;
GIOStatus iostatus;
diff --git a/profiles/network/manager.c b/profiles/network/manager.c
index ffab55b..79517d0 100644
--- a/profiles/network/manager.c
+++ b/profiles/network/manager.c
static int panu_server_probe(struct btd_profile *p, struct btd_adapter *adapter)
{
- const gchar *path = adapter_get_path(adapter);
+ const char *path = adapter_get_path(adapter);
DBG("path %s", path);
static void panu_server_remove(struct btd_profile *p,
struct btd_adapter *adapter)
{
- const gchar *path = adapter_get_path(adapter);
+ const char *path = adapter_get_path(adapter);
DBG("path %s", path);
static int gn_server_probe(struct btd_profile *p, struct btd_adapter *adapter)
{
- const gchar *path = adapter_get_path(adapter);
+ const char *path = adapter_get_path(adapter);
DBG("path %s", path);
static void gn_server_remove(struct btd_profile *p,
struct btd_adapter *adapter)
{
- const gchar *path = adapter_get_path(adapter);
+ const char *path = adapter_get_path(adapter);
DBG("path %s", path);
static int nap_server_probe(struct btd_profile *p, struct btd_adapter *adapter)
{
- const gchar *path = adapter_get_path(adapter);
+ const char *path = adapter_get_path(adapter);
DBG("path %s", path);
static void nap_server_remove(struct btd_profile *p,
struct btd_adapter *adapter)
{
- const gchar *path = adapter_get_path(adapter);
+ const char *path = adapter_get_path(adapter);
DBG("path %s", path);
diff --git a/profiles/thermometer/thermometer.c b/profiles/thermometer/thermometer.c
index 074bd4a..2a07eac 100644
--- a/profiles/thermometer/thermometer.c
+++ b/profiles/thermometer/thermometer.c
"tympanum"
};
-static const gchar *temptype2str(uint8_t value)
+static const char *temptype2str(uint8_t value)
{
if (value > 0 && value < G_N_ELEMENTS(temp_type))
return temp_type[value];
{
struct watcher *w = data;
struct measurement *m = user_data;
- const gchar *path = device_get_path(m->t->dev);
+ const char *path = device_get_path(m->t->dev);
DBusMessageIter iter;
DBusMessageIter dict;
DBusMessage *msg;
static int thermometer_register(struct btd_device *device,
struct gatt_primary *tattr)
{
- const gchar *path = device_get_path(device);
+ const char *path = device_get_path(device);
struct thermometer *t;
struct btd_adapter *adapter;
struct thermometer_adapter *tadapter;