[PATCH 06/10] qemumonitortestutils: Unexport 'qemuMonitorTestProcessFileEntries'

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

 



Unexport the function and 'struct qemuMonitorTestCommandReplyTuple' as
they are currently used only in tests/qemumonitortestutils.c

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/qemumonitortestutils.c |  9 ++++++++-
 tests/qemumonitortestutils.h | 13 -------------
 2 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/tests/qemumonitortestutils.c b/tests/qemumonitortestutils.c
index 16a4096c98..4e6a9371cb 100644
--- a/tests/qemumonitortestutils.c
+++ b/tests/qemumonitortestutils.c
@@ -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,
diff --git a/tests/qemumonitortestutils.h b/tests/qemumonitortestutils.h
index eddd8294bb..edd38d8df6 100644
--- a/tests/qemumonitortestutils.h
+++ b/tests/qemumonitortestutils.h
@@ -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);
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux