* 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)
* Opens connection to admin interface of the daemon.
*
* Returns @virAdmConnectPtr object or NULL on error
+ *
+ * Since: v2.0.0
*/
virAdmConnectPtr
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: v2.0.0
*/
int
virAdmConnectClose(virAdmConnectPtr conn)
* would increment the reference count.
*
* Returns 0 in case of success, -1 in case of failure
+ *
+ * Since: v2.0.0
*/
int
virAdmConnectRef(virAdmConnectPtr conn)
* instead.
*
* Returns 0 on success, -1 in case of an error.
+ *
+ * Since: v2.0.0
*/
int
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: v2.0.0
*/
int
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: v2.0.0
*/
char *
virAdmConnectGetURI(virAdmConnectPtr conn)
* context.
*
* Returns 0 on success, -1 on error
+ *
+ * Since: v2.0.0
*/
int virAdmConnectRegisterCloseCallback(virAdmConnectPtr conn,
virAdmConnectCloseFunc cb,
* registration, it will be invoked.
*
* Returns 0 on success, -1 on error
+ *
+ * Since: v2.0.0
*/
int virAdmConnectUnregisterCloseCallback(virAdmConnectPtr conn,
virAdmConnectCloseFunc cb)
* major * 1,000,000 + minor * 1,000 + release.
*
* Returns 0 on success, -1 on failure and @libVer follows this format:
+ *
+ * Since: v2.0.0
*/
int virAdmConnectGetLibVersion(virAdmConnectPtr conn,
unsigned long long *libVer)
*
* 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: v2.0.0
*/
const char *
virAdmServerGetName(virAdmServerPtr srv)
* The data structure is freed and should not be used thereafter.
*
* Returns 0 on success, -1 on failure.
+ *
+ * Since: v2.0.0
*/
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: v2.0.0
*/
unsigned long long
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: v2.0.0
*/
long long
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: v2.0.0
*/
int
virAdmClientGetTransport(virAdmClientPtr client)
* structure is freed and should not be used thereafter.
*
* Returns 0 in success, -1 on failure.
+ *
+ * Since: v2.0.0
*/
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: v2.0.0
*/
int
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: v2.0.0
*/
virAdmServerPtr
virAdmConnectLookupServer(virAdmConnectPtr conn,
* VIR_THREADPOOL_WORKERS_CURRENT
*
* Returns 0 on success, -1 in case of an error.
+ *
+ * Since: v2.0.0
*/
int
virAdmServerGetThreadPoolParameters(virAdmServerPtr srv,
* failure.
*
* Returns 0 on success, -1 in case of an error.
+ *
+ * Since: v2.0.0
*/
int
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: v2.0.0
*/
int
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: v2.0.0
*/
virAdmClientPtr
virAdmServerLookupClient(virAdmServerPtr srv,
*
* Returns 0 if the information has been successfully retrieved or -1 in case
* of an error.
+ *
+ * Since: v2.0.0
*/
int
virAdmClientGetInfo(virAdmClientPtr client,
*
* Returns 0 if the daemon's connection with @client was closed successfully
* or -1 in case of an error.
+ *
+ * Since: v2.0.0
*/
int virAdmClientClose(virAdmClientPtr client,
unsigned int flags)
*
* 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: v2.0.0
*/
int
virAdmServerGetClientLimits(virAdmServerPtr srv,
*
* Returns 0 if the limits have been changed successfully or -1 in case of an
* error.
+ *
+ * Since: v2.0.0
*/
int
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,
* 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,
*
* Returns the number of filters returned in @filters, or -1 in case of
* an error.
+ *
+ * Since: v3.0.0
*/
int
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,
*
* 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,