]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemumonitortestutils: Unexport 'qemuMonitorTestProcessFileEntries'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jan 2024 14:47:02 +0000 (15:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 1 Feb 2024 09:39:40 +0000 (10:39 +0100)
Unexport the function and 'struct qemuMonitorTestCommandReplyTuple' as
they are currently used only in tests/qemumonitortestutils.c

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tests/qemumonitortestutils.c
tests/qemumonitortestutils.h

index 16a4096c986ed59841305db7027e48511b26b816..4e6a9371cb856ea04d2e27cf7fd3061df1d904ec 100644 (file)
@@ -1036,6 +1036,13 @@ qemuMonitorTestFullAddItem(qemuMonitorTest *test,
 }
 
 
+struct qemuMonitorTestCommandReplyTuple {
+    const char *command;
+    const char *reply;
+    size_t line; /* line number of @command */
+};
+
+
 /**
  * qemuMonitorTestProcessFileEntries:
  * @inputstr: input file contents (modified)
@@ -1048,7 +1055,7 @@ qemuMonitorTestFullAddItem(qemuMonitorTest *test,
  * The file contains a sequence of JSON commands and reply objects separated by
  * empty lines. A command is followed by a reply.
  */
-int
+static int
 qemuMonitorTestProcessFileEntries(char *inputstr,
                                   const char *fileName,
                                   struct qemuMonitorTestCommandReplyTuple **items,
index eddd8294bb93d699e129593bb8aaf6fd8be68bff..edd38d8df6ac303f9226a86616ad8a49a522d837 100644 (file)
@@ -110,16 +110,3 @@ virDomainObj *
 qemuMonitorTestGetDomainObj(qemuMonitorTest *test);
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMonitorTest, qemuMonitorTestFree);
-
-struct qemuMonitorTestCommandReplyTuple {
-    const char *command;
-    const char *reply;
-    size_t line; /* line number of @command */
-};
-
-
-int
-qemuMonitorTestProcessFileEntries(char *inputstr,
-                                  const char *fileName,
-                                  struct qemuMonitorTestCommandReplyTuple **items,
-                                  size_t *nitems);