diff --git a/obexd/client/ftp.c b/obexd/client/ftp.c
index 08a50d4..a4cf3fc 100644
--- a/obexd/client/ftp.c
+++ b/obexd/client/ftp.c
}
static void xml_element(GMarkupParseContext *ctxt,
- const gchar *element,
- const gchar **names,
- const gchar **values,
+ const char *element,
+ const char **names,
+ const char **values,
gpointer user_data,
GError **gerr)
{
DBusMessageIter dict, *iter = user_data;
- gchar *key;
+ char *key;
gint i;
if (strcasecmp("folder", element) != 0 && strcasecmp("file", element) != 0)
/* FIXME: User, Group, Other permission must be reviewed */
i = 0;
- for (key = (gchar *) names[i]; key; key = (gchar *) names[++i]) {
+ for (key = (char *) names[i]; key; key = (char *) names[++i]) {
key[0] = g_ascii_toupper(key[0]);
if (g_str_equal("Size", key) == TRUE) {
guint64 size;
struct ftp_data *ftp = user_data;
struct obc_session *session = ftp->session;
struct obc_transfer *transfer;
- gchar *sourcefile, *targetfile;
+ char *sourcefile, *targetfile;
GError *err = NULL;
DBusMessage *reply;
diff --git a/obexd/client/manager.c b/obexd/client/manager.c
index 03e60a4..8efe1f2 100644
--- a/obexd/client/manager.c
+++ b/obexd/client/manager.c
DBusMessage *message, void *user_data)
{
struct obc_session *session;
- const gchar *sender, *path;
+ const char *sender, *path;
if (dbus_message_get_args(message, NULL,
DBUS_TYPE_OBJECT_PATH, &path,
diff --git a/obexd/client/map.c b/obexd/client/map.c
index df2b0bf..08914a6 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
return NULL;
}
-static void folder_element(GMarkupParseContext *ctxt, const gchar *element,
- const gchar **names, const gchar **values,
+static void folder_element(GMarkupParseContext *ctxt, const char *element,
+ const char **names, const char **values,
gpointer user_data, GError **gerr)
{
DBusMessageIter dict, *iter = user_data;
- const gchar *key;
+ const char *key;
gint i;
if (strcasecmp("folder", element) != 0)
{ }
};
-static void msg_element(GMarkupParseContext *ctxt, const gchar *element,
- const gchar **names, const gchar **values,
+static void msg_element(GMarkupParseContext *ctxt, const char *element,
+ const char **names, const char **values,
gpointer user_data, GError **gerr)
{
struct map_parser *parser = user_data;
struct map_data *data = parser->data;
DBusMessageIter entry, dict, *iter = parser->iter;
struct map_msg *msg;
- const gchar *key;
+ const char *key;
gint i;
if (strcasecmp("msg", element) != 0)
return get_message_listing(map, message, folder, apparam);
}
-static gchar **get_filter_strs(uint64_t filter, gint *size)
+static char **get_filter_strs(uint64_t filter, gint *size)
{
- gchar **list, **item;
+ char **list, **item;
gint i;
- list = g_malloc0(sizeof(gchar **) * (FILTER_BIT_MAX + 2));
+ list = g_malloc0(sizeof(char **) * (FILTER_BIT_MAX + 2));
item = list;
static DBusMessage *map_list_filter_fields(DBusConnection *connection,
DBusMessage *message, void *user_data)
{
- gchar **filters = NULL;
+ char **filters = NULL;
gint size;
DBusMessage *reply;
diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 326db4b..25cc17c 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
}
static void listing_element(GMarkupParseContext *ctxt,
- const gchar *element,
- const gchar **names,
- const gchar **values,
+ const char *element,
+ const char **names,
+ const char **values,
gpointer user_data,
GError **gerr)
{
DBusMessageIter *item = user_data, entry;
- gchar **key;
- const gchar *handle = NULL, *vcardname = NULL;
+ char **key;
+ const char *handle = NULL, *vcardname = NULL;
if (g_str_equal(element, "card") != TRUE)
return;
- for (key = (gchar **) names; *key; key++, values++) {
+ for (key = (char **) names; *key; key++, values++) {
if (g_str_equal(*key, "handle") == TRUE)
handle = *values;
else if (g_str_equal(*key, "name") == TRUE)
NULL,
NULL
};
-static gchar *build_phonebook_path(const char *location, const char *item)
+static char *build_phonebook_path(const char *location, const char *item)
{
- gchar *path = NULL, *tmp, *tmp1;
+ char *path = NULL, *tmp, *tmp1;
if (!g_ascii_strcasecmp(location, "int") ||
!g_ascii_strcasecmp(location, "internal"))
return pull_phonebook(pbap, message, GETPHONEBOOKSIZE, NULL, apparam);
}
-static gchar **get_filter_strs(uint64_t filter, gint *size)
+static char **get_filter_strs(uint64_t filter, gint *size)
{
- gchar **list, **item;
+ char **list, **item;
gint i;
- list = g_malloc0(sizeof(gchar **) * (FILTER_BIT_MAX + 2));
+ list = g_malloc0(sizeof(char **) * (FILTER_BIT_MAX + 2));
item = list;
static DBusMessage *pbap_list_filter_fields(DBusConnection *connection,
DBusMessage *message, void *user_data)
{
- gchar **filters = NULL;
+ char **filters = NULL;
gint size;
DBusMessage *reply;
diff --git a/obexd/client/session.c b/obexd/client/session.c
index cc10f88..9cc824e 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
uint8_t channel;
struct obc_transport *transport;
struct obc_driver *driver;
- gchar *path; /* Session path */
+ char *path; /* Session path */
DBusConnection *conn;
GObex *obex;
struct pending_request *p;
- gchar *owner; /* Session owner */
+ char *owner; /* Session owner */
guint watch;
GQueue *queue;
guint queue_complete_id;
diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c
index 3b4a003..541f405 100644
--- a/obexd/client/transfer.c
+++ b/obexd/client/transfer.c
char *session; /* Session path */
char *owner; /* Transfer initiator */
char *path; /* Transfer path */
- gchar *filename; /* Transfer file location */
+ char *filename; /* Transfer file location */
char *name; /* Transfer object name */
char *type; /* Transfer object type */
int fd;
DBusMessage *message, void *user_data)
{
struct obc_transfer *transfer = user_data;
- const gchar *sender;
+ const char *sender;
sender = dbus_message_get_sender(message);
if (g_strcmp0(transfer->owner, sender) != 0)
diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c
index d53774d..773861d 100644
--- a/obexd/plugins/ftp.c
+++ b/obexd/plugins/ftp.c
static gboolean is_valid_path(const char *path)
{
- gchar **elements, **cur;
+ char **elements, **cur;
int depth = 0;
elements = g_strsplit(path, "/", 0);
diff --git a/obexd/plugins/mas.c b/obexd/plugins/mas.c
index 3270edd..5729c22 100644
--- a/obexd/plugins/mas.c
+++ b/obexd/plugins/mas.c
/* FIXME: Preserve whitespaces */
static void g_string_append_escaped_printf(GString *string,
- const gchar *format, ...)
+ const char *format, ...)
{
va_list ap;
char *escaped;
diff --git a/obexd/plugins/pcsuite.c b/obexd/plugins/pcsuite.c
index 6ad8f49..4ce2fe4 100644
--- a/obexd/plugins/pcsuite.c
+++ b/obexd/plugins/pcsuite.c
};
struct backup_object {
- gchar *cmd;
+ char *cmd;
int fd;
int oflag;
int error_code;
diff --git a/obexd/plugins/phonebook-ebook.c b/obexd/plugins/phonebook-ebook.c
index 59a4eac..2e49576 100644
--- a/obexd/plugins/phonebook-ebook.c
+++ b/obexd/plugins/phonebook-ebook.c
GError *gerr = NULL;
ESourceList *src_list;
GSList *list;
- gchar *default_src = NULL;
+ char *default_src = NULL;
GSList *ebooks = NULL;
if (e_book_get_addressbooks(&src_list, &gerr) == FALSE) {