diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-04-28 15:40:07 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-04-29 12:26:06 +0300 |
commit | 8c2fac46790d11a6f7e9dafc0c4792b4afb70076 (patch) | |
tree | a0981e555c24bc08ae45553d7e5b880d1bf35c95 /tools/btgatt-client.c | |
parent | 91731d0208a33d0c5b27071c27f98f014adac8d2 (diff) | |
download | bluez-8c2fac46790d11a6f7e9dafc0c4792b4afb70076.tar.gz |
tools/btgatt-client: Rename sec_level to security
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r-- | tools/btgatt-client.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index a49e16a94..fbc01dba0 100644 --- a/tools/btgatt-client.c +++ b/tools/btgatt-client.c @@ -1195,15 +1195,15 @@ static void cmd_unregister_notify(struct client *cli, char *cmd_str) printf("Unregistered notify handler with id: %u\n", id); } -static void set_sec_level_usage(void) +static void set_security_usage(void) { - printf("Usage: set_sec_level <level>\n" + printf("Usage: set_security <level>\n" "level: 1-3\n" "e.g.:\n" "\tset-sec-level 2\n"); } -static void cmd_set_sec_level(struct client *cli, char *cmd_str) +static void cmd_set_security(struct client *cli, char *cmd_str) { char *argvbuf[1]; char **argv = argvbuf; @@ -1218,12 +1218,12 @@ static void cmd_set_sec_level(struct client *cli, char *cmd_str) if (!parse_args(cmd_str, 1, argv, &argc)) { printf("Too many arguments\n"); - set_sec_level_usage(); + set_security_usage(); return; } if (argc < 1) { - set_sec_level_usage(); + set_security_usage(); return; } @@ -1239,7 +1239,7 @@ static void cmd_set_sec_level(struct client *cli, char *cmd_str) printf("Setting security level %d success\n", level); } -static void cmd_get_sec_level(struct client *cli, char *cmd_str) +static void cmd_get_security(struct client *cli, char *cmd_str) { int level; @@ -1342,9 +1342,9 @@ static struct { "\tSubscribe to not/ind from a characteristic" }, { "unregister-notify", cmd_unregister_notify, "Unregister a not/ind session"}, - { "set-sec-level", cmd_set_sec_level, + { "set-security", cmd_set_security, "\tSet security level on le connection"}, - { "get-sec-level", cmd_get_sec_level, + { "get-security", cmd_get_security, "\tGet security level on le connection"}, { "set-sign-key", cmd_set_sign_key, "\tSet signing key for signed write command"}, |