return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
- bt_shell_printf("Attempting to write %s\n", g_dbus_proxy_get_path(proxy));
+ bt_shell_printf("Attempting to write %s\n",
+ g_dbus_proxy_get_path(proxy));
}
void gatt_write_attribute(GDBusProxy *proxy, const char *arg)
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
- bt_shell_printf("AcquireWrite success: fd %d MTU %u\n", fd, write_io.mtu);
+ bt_shell_printf("AcquireWrite success: fd %d MTU %u\n", fd,
+ write_io.mtu);
write_io.io = pipe_io_new(fd, NULL);
return bt_shell_noninteractive_quit(EXIT_SUCCESS);
iface = g_dbus_proxy_get_interface(proxy);
if (strcmp(iface, "org.bluez.GattCharacteristic1")) {
- bt_shell_printf("Unable to acquire write: %s not a characteristic\n",
- g_dbus_proxy_get_path(proxy));
+ bt_shell_printf("Unable to acquire write: %s not a"
+ " characteristic\n",
+ g_dbus_proxy_get_path(proxy));
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
- bt_shell_printf("AcquireNotify success: fd %d MTU %u\n", fd, notify_io.mtu);
+ bt_shell_printf("AcquireNotify success: fd %d MTU %u\n", fd,
+ notify_io.mtu);
notify_io.io = pipe_io_new(fd, NULL);
iface = g_dbus_proxy_get_interface(proxy);
if (strcmp(iface, "org.bluez.GattCharacteristic1")) {
- bt_shell_printf("Unable to acquire notify: %s not a characteristic\n",
- g_dbus_proxy_get_path(proxy));
+ bt_shell_printf("Unable to acquire notify: %s not a"
+ " characteristic\n",
+ g_dbus_proxy_get_path(proxy));
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
if (g_dbus_proxy_method_call(proxy, method, NULL, notify_reply,
GUINT_TO_POINTER(enable), NULL) == FALSE) {
- bt_shell_printf("Failed to %s notify\n", enable ? "start" : "stop");
+ bt_shell_printf("Failed to %s notify\n",
+ enable ? "start" : "stop");
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
dbus_error_init(&error);
if (dbus_set_error_from_message(&error, message) == TRUE) {
- bt_shell_printf("Failed to register application: %s\n", error.name);
+ bt_shell_printf("Failed to register application: %s\n",
+ error.name);
dbus_error_free(&error);
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
PROFILE_INTERFACE, methods,
NULL, properties, NULL,
NULL) == FALSE) {
- bt_shell_printf("Failed to register application object\n");
+ bt_shell_printf("Failed to register application"
+ " object\n");
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}
}
dbus_error_init(&error);
if (dbus_set_error_from_message(&error, message) == TRUE) {
- bt_shell_printf("Failed to unregister application: %s\n", error.name);
+ bt_shell_printf("Failed to unregister application: %s\n",
+ error.name);
dbus_error_free(&error);
return bt_shell_noninteractive_quit(EXIT_FAILURE);
}