[PATCH v3 16/30] docstring: function: admin: Add 'Since version' metadata

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

 



Either create or append to existing docstring, the version (git tag)
that a given function was introduced in the format:

    Since: v1.2.3

Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx>
---
 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-admin.h
index c73cf6e7da..5945fc172c 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, but 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 error.
+ *
+ * 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 error.
  * 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(virAdmConnectPtr 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 @client
  * (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 case
  * 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 successfully
  * 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,
-- 
2.35.1




[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