2015-04-15 16:16:24 +02:00
|
|
|
/*
|
|
|
|
* libvirt-admin.h: Admin interface for libvirt
|
|
|
|
* Summary: Interfaces for handling server-related tasks
|
|
|
|
* Description: Provides the interfaces of the libvirt library to operate
|
|
|
|
* with the server itself, not any hypervisors.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014-2015 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Author: Martin Kletzander <mkletzan@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIR_ADMIN_H__
|
|
|
|
# define __VIR_ADMIN_H__
|
|
|
|
|
|
|
|
# ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
# endif
|
|
|
|
|
2015-11-26 15:02:49 +01:00
|
|
|
# define __VIR_ADMIN_H_INCLUDES__
|
|
|
|
# include <libvirt/libvirt-common.h>
|
|
|
|
# undef __VIR_ADMIN_H_INCLUDES__
|
2015-04-15 16:16:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* virAdmConnect:
|
|
|
|
*
|
|
|
|
* a virAdmConnect is a private structure representing a connection to
|
|
|
|
* libvirt daemon.
|
|
|
|
*/
|
|
|
|
typedef struct _virAdmConnect virAdmConnect;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* virAdmConnectPtr:
|
|
|
|
*
|
|
|
|
* a virAdmConnectPtr is pointer to a virAdmConnect private structure,
|
|
|
|
* this is the type used to reference a connection to the daemon
|
|
|
|
* in the API.
|
|
|
|
*/
|
|
|
|
typedef virAdmConnect *virAdmConnectPtr;
|
|
|
|
|
|
|
|
virAdmConnectPtr virAdmConnectOpen(const char *name, unsigned int flags);
|
|
|
|
int virAdmConnectClose(virAdmConnectPtr conn);
|
|
|
|
|
|
|
|
int virAdmConnectRef(virAdmConnectPtr conn);
|
2015-10-14 15:10:02 +02:00
|
|
|
int virAdmConnectIsAlive(virAdmConnectPtr conn);
|
2015-04-15 16:16:24 +02:00
|
|
|
|
2015-11-26 15:08:36 +01:00
|
|
|
int virAdmGetVersion(unsigned long long *libVer);
|
|
|
|
|
2015-10-12 16:07:52 +02:00
|
|
|
char *virAdmConnectGetURI(virAdmConnectPtr conn);
|
2015-11-26 15:08:36 +01:00
|
|
|
|
2015-04-15 16:16:24 +02:00
|
|
|
# ifdef __cplusplus
|
|
|
|
}
|
|
|
|
# endif
|
|
|
|
|
|
|
|
#endif /* __VIR_ADMIN_H__ */
|