static GDBusProxy *default_attr;
static GList *ctrl_list;
-static const char *mode_arguments[] = {
- "on",
- "off",
- NULL
-};
-
static const char *agent_arguments[] = {
"on",
"off",
return NULL;
}
-static char *mode_generator(const char *text, int state)
-{
- return argument_generator(text, state, mode_arguments);
-}
-
static char *capability_generator(const char *text, int state)
{
return argument_generator(text, state, agent_arguments);
"Set advertise manufacturer data" },
{ "tx-power", "[on/off]", cmd_advertise_tx_power,
"Enable/disable TX power to be advertised",
- mode_generator },
+ NULL },
{ "name", "[on/off/name]", cmd_advertise_name,
"Enable/disable local name to be advertised" },
{ "appearance", "[value]", cmd_advertise_appearance,
"Set/Get transport filter" },
{ "duplicate-data", "[on/off]", cmd_scan_filter_duplicate_data,
"Set/Get duplicate data filter",
- mode_generator },
+ NULL },
{ "clear", "[uuids/rssi/pathloss/transport/duplicate-data]",
cmd_scan_filter_clear,
"Clears discovery filter.",
{ "release-notify", NULL, cmd_release_notify,
"Release Notify file descriptor" },
{ "notify", "<on/off>", cmd_notify, "Notify attribute value",
- mode_generator },
+ NULL },
{ "register-application", "[UUID ...]", cmd_register_app,
"Register profile to connect" },
{ "unregister-application", NULL, cmd_unregister_app,
{ "reset-alias", NULL, cmd_reset_alias,
"Reset controller alias" },
{ "power", "<on/off>", cmd_power, "Set controller power",
- mode_generator },
+ NULL },
{ "pairable", "<on/off>", cmd_pairable,
"Set controller pairable mode",
- mode_generator },
+ NULL },
{ "discoverable", "<on/off>", cmd_discoverable,
"Set controller discoverable mode",
- mode_generator },
+ NULL },
{ "agent", "<on/off/capability>", cmd_agent,
"Enable/disable agent with given capability",
capability_generator},
"Enable/disable advertising with given type",
ad_generator},
{ "set-alias", "<alias>", cmd_set_alias, "Set device alias" },
- { "scan", "<on/off>", cmd_scan, "Scan for devices",
- mode_generator },
+ { "scan", "<on/off>", cmd_scan, "Scan for devices", NULL },
{ "info", "[dev]", cmd_info, "Device information",
dev_generator },
{ "pair", "[dev]", cmd_pair, "Pair with device",