From: Peter Krempa Date: Mon, 15 Jan 2024 14:47:02 +0000 (+0100) Subject: qemumonitortestutils: Unexport 'qemuMonitorTestProcessFileEntries' X-Git-Tag: v10.1.0-rc1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29aa1c2f4c63141e5d60e0dc5f10a1768c5c7db6;p=thirdparty%2Flibvirt.git qemumonitortestutils: Unexport 'qemuMonitorTestProcessFileEntries' Unexport the function and 'struct qemuMonitorTestCommandReplyTuple' as they are currently used only in tests/qemumonitortestutils.c Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko Reviewed-by: Andrea Bolognani --- 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);