From nobody Tue Feb 10 12:39:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649969405; cv=none; d=zohomail.com; s=zohoarc; b=Zu4G5DLueDVDbWGdC7d5ZOE4GGpAZKzKHNykeRBzp4I7waSKU/HYIc4g9sx0P5ZFWoZz+GxBBTmQmB0TYEtoMc6z1ve0MVl0z7v0G7FKgY7hhDEJdIHaf1ovb25QWakHVOVJiUghg3tgMbtsZLg7+esxRSl2Cd6ulcEoISGUgM8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649969405; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LLAVPjEcZ0B+wFGoz/TVej2rzSs8WgmpwqRyGvYAC9c=; b=ZflA8V3kNouSByobOCeLio3mXm8zkxY2RUXtxlYHvo/djQuX1/TcWeXpahncQYq1nJBX5nIaqCfeHLOYR+grIZL4LL5sECt90zSWrQe2uJDXvL+Rmd1lfo41WarBPwpgHPHnDa9naAkQd+HU3KVN45UlUWwzqGhM94+hdwKlHmI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1649969405347141.44490176649674; Thu, 14 Apr 2022 13:50:05 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-615-aUFweBcMMw67Nv1S8ZqZAw-1; Thu, 14 Apr 2022 16:49:47 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 32A5E80159B; Thu, 14 Apr 2022 20:49:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1CE1F41136E0; Thu, 14 Apr 2022 20:49:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BB17A194034E; Thu, 14 Apr 2022 20:49:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 98765194034E for ; Thu, 14 Apr 2022 20:49:43 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 82B632167D64; Thu, 14 Apr 2022 20:49:43 +0000 (UTC) Received: from tapioca.home (unknown [10.40.193.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 056182166BA4 for ; Thu, 14 Apr 2022 20:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649969403; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=LLAVPjEcZ0B+wFGoz/TVej2rzSs8WgmpwqRyGvYAC9c=; b=g1ZeAaCkx+tTRvQx2kR6bEBwc4wAEPK2c7SLTphMQ/YxuuQEE0nVrivmk7qC6/wawQ6FVa 7T2YQ42fWj1SyhSGPAFPUR892kFpPceyT2cC3LrWYvQtwn0faTxlcvN5vDhxOblv66WNDV 0cAICnYnyYLxOECWm0+9wd/qJB6oJD8= X-MC-Unique: aUFweBcMMw67Nv1S8ZqZAw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Victor Toso To: libvir-list@redhat.com Subject: [PATCH v2 14/34] docs: generated: functions: admin: append 'Since version' metadata Date: Thu, 14 Apr 2022 22:47:25 +0200 Message-Id: <20220414204745.108966-15-victortoso@redhat.com> In-Reply-To: <20220414204745.108966-1-victortoso@redhat.com> References: <20220414204745.108966-1-victortoso@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1649969406812100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Victor Toso --- include/libvirt/libvirt-admin.h | 3 ++ src/admin/libvirt-admin.c | 93 +++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/include/libvirt/libvirt-admin.h b/include/libvirt/libvirt-admi= n.h index 2bfb45145d..f2cb528524 100644 --- a/include/libvirt/libvirt-admin.h +++ b/include/libvirt/libvirt-admin.h @@ -126,6 +126,9 @@ int virAdmConnectGetLibVersion(virAdmConnectPtr conn, * @opaque: opaque client data * * A callback to be registered, in case a connection was closed. + * + * Since: v1.3.1 + * */ typedef void (*virAdmConnectCloseFunc)(virAdmConnectPtr conn, int reason, diff --git a/src/admin/libvirt-admin.c b/src/admin/libvirt-admin.c index 01546a7bc2..35470c866e 100644 --- a/src/admin/libvirt-admin.c +++ b/src/admin/libvirt-admin.c @@ -84,6 +84,9 @@ virAdmGlobalInit(void) * necessary for the application to call virAdmInitialize. * * Returns 0 in case of success, -1 in case of error + * + * Since: v2.0.0 + * */ int virAdmInitialize(void) @@ -200,6 +203,9 @@ virAdmGetDefaultURI(virConf *conf, char **uristr) * Opens connection to admin interface of the daemon. * * Returns @virAdmConnectPtr object or NULL on error + * + * Since: v1.2.17 + * */ virAdmConnectPtr virAdmConnectOpen(const char *name, unsigned int flags) @@ -284,6 +290,9 @@ virAdmConnectOpen(const char *name, unsigned int flags) * some other object still has a temporary reference to the connection, bu= t the * application should not try to further use a connection after the * virAdmConnectClose that matches the initial open. + * + * Since: v1.2.17 + * */ int virAdmConnectClose(virAdmConnectPtr conn) @@ -319,6 +328,9 @@ virAdmConnectClose(virAdmConnectPtr conn) * would increment the reference count. * * Returns 0 in case of success, -1 in case of failure + * + * Since: v1.2.17 + * */ int virAdmConnectRef(virAdmConnectPtr conn) @@ -346,6 +358,9 @@ virAdmConnectRef(virAdmConnectPtr conn) * instead. * * Returns 0 on success, -1 in case of an error. + * + * Since: v1.3.0 + * */ int virAdmGetVersion(unsigned long long *libVer) @@ -377,6 +392,9 @@ virAdmGetVersion(unsigned long long *libVer) * * Returns 1, if the connection is alive, 0 if there isn't an existing * connection at all or the channel has already been closed, or -1 on erro= r. + * + * Since: v1.3.1 + * */ int virAdmConnectIsAlive(virAdmConnectPtr conn) @@ -411,6 +429,9 @@ virAdmConnectIsAlive(virAdmConnectPtr conn) * * Returns an URI string related to the connection or NULL in case of an e= rror. * Caller is responsible for freeing the string. + * + * Since: v1.3.1 + * */ char * virAdmConnectGetURI(virAdmConnectPtr conn) @@ -445,6 +466,9 @@ virAdmConnectGetURI(virAdmConnectPtr conn) * context. * * Returns 0 on success, -1 on error + * + * Since: v1.3.1 + * */ int virAdmConnectRegisterCloseCallback(virAdmConnectPtr conn, virAdmConnectCloseFunc cb, @@ -498,6 +522,9 @@ int virAdmConnectRegisterCloseCallback(virAdmConnectPtr= conn, * registration, it will be invoked. * * Returns 0 on success, -1 on error + * + * Since: v1.3.1 + * */ int virAdmConnectUnregisterCloseCallback(virAdmConnectPtr conn, virAdmConnectCloseFunc cb) @@ -528,6 +555,9 @@ int virAdmConnectUnregisterCloseCallback(virAdmConnectP= tr conn, * major * 1,000,000 + minor * 1,000 + release. * * Returns 0 on success, -1 on failure and @libVer follows this format: + * + * Since: v1.3.1 + * */ int virAdmConnectGetLibVersion(virAdmConnectPtr conn, unsigned long long *libVer) @@ -556,6 +586,9 @@ int virAdmConnectGetLibVersion(virAdmConnectPtr conn, * * Returns a pointer to the name or NULL. The string doesn't need to be * deallocated since its lifetime will be the same as the server object. + * + * Since: v1.3.2 + * */ const char * virAdmServerGetName(virAdmServerPtr srv) @@ -576,6 +609,9 @@ virAdmServerGetName(virAdmServerPtr srv) * The data structure is freed and should not be used thereafter. * * Returns 0 on success, -1 on failure. + * + * Since: v1.3.2 + * */ int virAdmServerFree(virAdmServerPtr srv) { @@ -599,6 +635,9 @@ int virAdmServerFree(virAdmServerPtr srv) * Get client's unique numeric ID. * * Returns numeric value used for client's ID or -1 in case of an error. + * + * Since: v1.3.5 + * */ unsigned long long virAdmClientGetID(virAdmClientPtr client) @@ -622,6 +661,9 @@ virAdmClientGetID(virAdmClientPtr client) * Returns client's connection timestamp (seconds from epoch in UTC) or 0 * (epoch time) if libvirt doesn't have any information about client's * connection time, or -1 in case of an error. + * + * Since: v1.3.5 + * */ long long virAdmClientGetTimestamp(virAdmClientPtr client) @@ -647,6 +689,9 @@ virAdmClientGetTimestamp(virAdmClientPtr client) * * Returns integer representation of the connection transport used by @cli= ent * (this will be one of virClientTransport) or -1 in case of an error. + * + * Since: v1.3.5 + * */ int virAdmClientGetTransport(virAdmClientPtr client) @@ -666,6 +711,9 @@ virAdmClientGetTransport(virAdmClientPtr client) * structure is freed and should not be used thereafter. * * Returns 0 in success, -1 on failure. + * + * Since: v1.3.5 + * */ int virAdmClientFree(virAdmClientPtr client) { @@ -697,6 +745,9 @@ int virAdmClientFree(virAdmClientPtr client) * this extra element from the final count. * Caller is responsible to call virAdmServerFree() on each list element, * followed by freeing @servers. + * + * Since: v1.3.2 + * */ int virAdmConnectListServers(virAdmConnectPtr conn, @@ -735,6 +786,9 @@ virAdmConnectListServers(virAdmConnectPtr conn, * * Returns the requested server or NULL in case of failure. If the * server cannot be found, then VIR_ERR_NO_SERVER error is raised. + * + * Since: v1.3.3 + * */ virAdmServerPtr virAdmConnectLookupServer(virAdmConnectPtr conn, @@ -776,6 +830,9 @@ virAdmConnectLookupServer(virAdmConnectPtr conn, * VIR_THREADPOOL_WORKERS_CURRENT * * Returns 0 on success, -1 in case of an error. + * + * Since: v1.3.4 + * */ int virAdmServerGetThreadPoolParameters(virAdmServerPtr srv, @@ -815,6 +872,9 @@ virAdmServerGetThreadPoolParameters(virAdmServerPtr srv, * failure. * * Returns 0 on success, -1 in case of an error. + * + * Since: v1.3.4 + * */ int virAdmServerSetThreadPoolParameters(virAdmServerPtr srv, @@ -856,6 +916,9 @@ virAdmServerSetThreadPoolParameters(virAdmServerPtr srv, * excluding this extra element from the final count. * Caller is responsible to call virAdmClientFree() on each list element, * followed by freeing @clients. + * + * Since: v1.3.5 + * */ int virAdmServerListClients(virAdmServerPtr srv, @@ -894,6 +957,9 @@ virAdmServerListClients(virAdmServerPtr srv, * * Returns the requested client or NULL in case of failure. If the * client could not be found, then VIR_ERR_NO_CLIENT error is raised. + * + * Since: v1.3.5 + * */ virAdmClientPtr virAdmServerLookupClient(virAdmServerPtr srv, @@ -940,6 +1006,9 @@ virAdmServerLookupClient(virAdmServerPtr srv, * * Returns 0 if the information has been successfully retrieved or -1 in c= ase * of an error. + * + * Since: v1.3.5 + * */ int virAdmClientGetInfo(virAdmClientPtr client, @@ -974,6 +1043,9 @@ virAdmClientGetInfo(virAdmClientPtr client, * * Returns 0 if the daemon's connection with @client was closed successful= ly * or -1 in case of an error. + * + * Since: v1.3.5 + * */ int virAdmClientClose(virAdmClientPtr client, unsigned int flags) @@ -1011,6 +1083,9 @@ int virAdmClientClose(virAdmClientPtr client, * * Returns 0 on success, allocating @params to size returned in @nparams, = or * -1 in case of an error. Caller is responsible for deallocating @params. + * + * Since: v1.3.5 + * */ int virAdmServerGetClientLimits(virAdmServerPtr srv, @@ -1051,6 +1126,9 @@ virAdmServerGetClientLimits(virAdmServerPtr srv, * * Returns 0 if the limits have been changed successfully or -1 in case of= an * error. + * + * Since: v1.3.5 + * */ int virAdmServerSetClientLimits(virAdmServerPtr srv, @@ -1089,6 +1167,9 @@ virAdmServerSetClientLimits(virAdmServerPtr srv, * * Returns 0 if the TLS files have been updated successfully or -1 in case= of an * error. + * + * Since: v6.2.0 + * */ int virAdmServerUpdateTlsFiles(virAdmServerPtr srv, @@ -1127,6 +1208,9 @@ virAdmServerUpdateTlsFiles(virAdmServerPtr srv, * caller. Caller is also responsible for freeing @outputs correctly. * * Returns the count of outputs in @outputs, or -1 in case of an error. + * + * Since: v3.0.0 + * */ int virAdmConnectGetLoggingOutputs(virAdmConnectPtr conn, @@ -1168,6 +1252,9 @@ virAdmConnectGetLoggingOutputs(virAdmConnectPtr conn, * * Returns the number of filters returned in @filters, or -1 in case of * an error. + * + * Since: v3.0.0 + * */ int virAdmConnectGetLoggingFilters(virAdmConnectPtr conn, @@ -1208,6 +1295,9 @@ virAdmConnectGetLoggingFilters(virAdmConnectPtr conn, * * Returns 0 if the new output or the set of outputs has been defined * successfully, or -1 in case of an error. + * + * Since: v3.0.0 + * */ int virAdmConnectSetLoggingOutputs(virAdmConnectPtr conn, @@ -1246,6 +1336,9 @@ virAdmConnectSetLoggingOutputs(virAdmConnectPtr conn, * * Returns 0 if the new filter or the set of filters has been defined * successfully, or -1 in case of an error. + * + * Since: v3.0.0 + * */ int virAdmConnectSetLoggingFilters(virAdmConnectPtr conn, --=20 2.35.1