poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/5] .ios: Add a completer (same as for the .close command)


From: John Darrington
Subject: [PATCH 5/5] .ios: Add a completer (same as for the .close command)
Date: Fri, 21 Feb 2020 17:36:35 +0100

---
 ChangeLog    | 6 ++++++
 src/pk-ios.c | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index dce14fc8..173308bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-16  John Darrington <address@hidden>
+
+       * src/pk-ios.c (close_completion_function): rename to
+       ios_completion_function and use for both the close and
+       ios commands.
+
 2020-02-16  John Darrington <address@hidden>
 
        * src/ios.h (struct ios): New structure.
diff --git a/src/pk-ios.c b/src/pk-ios.c
index 43c340a3..edaba40b 100644
--- a/src/pk-ios.c
+++ b/src/pk-ios.c
@@ -35,7 +35,7 @@
 #endif
 
 static char *
-close_completion_function (const char *x, int state)
+ios_completion_function (const char *x, int state)
 {
   static ios io;
   if (state == 0)
@@ -328,7 +328,7 @@ pk_cmd_mem (int argc, struct pk_cmd_arg argv[], uint64_t 
uflags)
 }
 
 struct pk_cmd ios_cmd =
-  {"ios", "t", "", 0, NULL, pk_cmd_ios, "ios #ID", NULL};
+  {"ios", "t", "", 0, NULL, pk_cmd_ios, "ios #ID", ios_completion_function};
 
 struct pk_cmd file_cmd =
   {"file", "f", "", 0, NULL, pk_cmd_file, "file FILENAME", 
rl_filename_completion_function};
@@ -337,7 +337,7 @@ struct pk_cmd mem_cmd =
   {"mem", "ts", "", 0, NULL, pk_cmd_mem, "mem NAME", NULL};
 
 struct pk_cmd close_cmd =
-  {"close", "?t", "", PK_CMD_F_REQ_IO, NULL, pk_cmd_close, "close [#ID]", 
close_completion_function};
+  {"close", "?t", "", PK_CMD_F_REQ_IO, NULL, pk_cmd_close, "close [#ID]", 
ios_completion_function};
 
 struct pk_cmd info_ios_cmd =
   {"ios", "", "", 0, NULL, pk_cmd_info_ios, "info ios", NULL};
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]