Use plain char instead of gchar.
if (cmd->sent)
return FALSE;
- iostat = g_io_channel_write_chars(io, (gchar *) cmd->pdu, cmd->len,
+ iostat = g_io_channel_write_chars(io, (char *) cmd->pdu, cmd->len,
&len, &gerr);
if (iostat != G_IO_STATUS_NORMAL) {
if (gerr) {
memset(buf, 0, sizeof(buf));
- iostat = g_io_channel_read_chars(io, (gchar *) buf, sizeof(buf),
+ iostat = g_io_channel_read_chars(io, (char *) buf, sizeof(buf),
&len, NULL);
if (iostat != G_IO_STATUS_NORMAL) {
status = ATT_ECODE_IO;
#include "gatt.h"
#include "gatttool.h"
-static gchar *opt_src = NULL;
-static gchar *opt_dst = NULL;
-static gchar *opt_dst_type = NULL;
-static gchar *opt_value = NULL;
-static gchar *opt_sec_level = NULL;
+static char *opt_src = NULL;
+static char *opt_dst = NULL;
+static char *opt_dst_type = NULL;
+static char *opt_value = NULL;
+static char *opt_sec_level = NULL;
static bt_uuid_t *opt_uuid = NULL;
static int opt_start = 0x0001;
static int opt_end = 0xffff;
else if (opt_char_desc)
operation = characteristics_desc;
else {
- gchar *help = g_option_context_get_help(context, TRUE, NULL);
+ char *help = g_option_context_get_help(context, TRUE, NULL);
g_print("%s\n", help);
g_free(help);
got_error = TRUE;
*
*/
-int interactive(const gchar *src, const gchar *dst, const gchar *dst_type,
+int interactive(const char *src, const char *dst, const char *dst_type,
int psm);
-GIOChannel *gatt_connect(const gchar *src, const gchar *dst,
- const gchar *dst_type, const gchar *sec_level,
+GIOChannel *gatt_connect(const char *src, const char *dst,
+ const char *dst_type, const char *sec_level,
int psm, int mtu, BtIOConnect connect_cb,
GError **gerr);
size_t gatt_attr_data_from_string(const char *str, uint8_t **data);
static GMainLoop *event_loop;
static GString *prompt;
-static gchar *opt_src = NULL;
-static gchar *opt_dst = NULL;
-static gchar *opt_dst_type = NULL;
-static gchar *opt_sec_level = NULL;
+static char *opt_src = NULL;
+static char *opt_dst = NULL;
+static char *opt_dst_type = NULL;
+static char *opt_sec_level = NULL;
static int opt_psm = 0;
static int opt_mtu = 0;
static int start;
static void parse_line(char *line_read)
{
- gchar **argvp;
+ char **argvp;
int argcp;
int i;
return source;
}
-int interactive(const gchar *src, const gchar *dst,
- const gchar *dst_type, int psm)
+int interactive(const char *src, const char *dst,
+ const char *dst_type, int psm)
{
guint input;
guint signal;
#include "gatt.h"
#include "gatttool.h"
-GIOChannel *gatt_connect(const gchar *src, const gchar *dst,
- const gchar *dst_type, const gchar *sec_level,
+GIOChannel *gatt_connect(const char *src, const char *dst,
+ const char *dst_type, const char *sec_level,
int psm, int mtu, BtIOConnect connect_cb,
GError **gerr)
{