mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Tue May 8 11:49:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/hash.c, src/internal.h, src/libvirt_sym.version: Export __virGetDomain and __virGetNetwork for use by the libvirtd. The double underscores indicate that these interfaces are not officially supported parts of the libvirt API or ABI.
This commit is contained in:
parent
e0e95c53fc
commit
0d555708bd
@ -1,3 +1,10 @@
|
|||||||
|
Tue May 8 11:49:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
* src/hash.c, src/internal.h, src/libvirt_sym.version: Export
|
||||||
|
__virGetDomain and __virGetNetwork for use by the libvirtd.
|
||||||
|
The double underscores indicate that these interfaces are
|
||||||
|
not officially supported parts of the libvirt API or ABI.
|
||||||
|
|
||||||
Tue May 8 11:14:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
Tue May 8 11:14:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
* src/hash.c, src/internal.h, src/xs_internal.c: Remove
|
* src/hash.c, src/internal.h, src/xs_internal.c: Remove
|
||||||
|
@ -744,7 +744,7 @@ virFreeConnect(virConnectPtr conn) {
|
|||||||
* Returns a pointer to the domain, or NULL in case of failure
|
* Returns a pointer to the domain, or NULL in case of failure
|
||||||
*/
|
*/
|
||||||
virDomainPtr
|
virDomainPtr
|
||||||
virGetDomain(virConnectPtr conn, const char *name, const unsigned char *uuid) {
|
__virGetDomain(virConnectPtr conn, const char *name, const unsigned char *uuid) {
|
||||||
virDomainPtr ret = NULL;
|
virDomainPtr ret = NULL;
|
||||||
|
|
||||||
if ((!VIR_IS_CONNECT(conn)) || (name == NULL) || (uuid == NULL) ||
|
if ((!VIR_IS_CONNECT(conn)) || (name == NULL) || (uuid == NULL) ||
|
||||||
@ -922,7 +922,7 @@ done:
|
|||||||
* Returns a pointer to the network, or NULL in case of failure
|
* Returns a pointer to the network, or NULL in case of failure
|
||||||
*/
|
*/
|
||||||
virNetworkPtr
|
virNetworkPtr
|
||||||
virGetNetwork(virConnectPtr conn, const char *name, const unsigned char *uuid) {
|
__virGetNetwork(virConnectPtr conn, const char *name, const unsigned char *uuid) {
|
||||||
virNetworkPtr ret = NULL;
|
virNetworkPtr ret = NULL;
|
||||||
|
|
||||||
if ((!VIR_IS_CONNECT(conn)) || (name == NULL) || (uuid == NULL) ||
|
if ((!VIR_IS_CONNECT(conn)) || (name == NULL) || (uuid == NULL) ||
|
||||||
|
@ -198,19 +198,22 @@ const char *__virErrorMsg(virErrorNumber error, const char *info);
|
|||||||
|
|
||||||
virConnectPtr virGetConnect (void);
|
virConnectPtr virGetConnect (void);
|
||||||
int virFreeConnect (virConnectPtr conn);
|
int virFreeConnect (virConnectPtr conn);
|
||||||
virDomainPtr virGetDomain (virConnectPtr conn,
|
virDomainPtr __virGetDomain (virConnectPtr conn,
|
||||||
const char *name,
|
const char *name,
|
||||||
const unsigned char *uuid);
|
const unsigned char *uuid);
|
||||||
int virFreeDomain (virConnectPtr conn,
|
int virFreeDomain (virConnectPtr conn,
|
||||||
virDomainPtr domain);
|
virDomainPtr domain);
|
||||||
virDomainPtr virGetDomainByID(virConnectPtr conn,
|
virDomainPtr virGetDomainByID(virConnectPtr conn,
|
||||||
int id);
|
int id);
|
||||||
virNetworkPtr virGetNetwork (virConnectPtr conn,
|
virNetworkPtr __virGetNetwork (virConnectPtr conn,
|
||||||
const char *name,
|
const char *name,
|
||||||
const unsigned char *uuid);
|
const unsigned char *uuid);
|
||||||
int virFreeNetwork (virConnectPtr conn,
|
int virFreeNetwork (virConnectPtr conn,
|
||||||
virNetworkPtr domain);
|
virNetworkPtr domain);
|
||||||
|
|
||||||
|
#define virGetDomain(c,n,u) __virGetDomain((c),(n),(u))
|
||||||
|
#define virGetNetwork(c,n,u) __virGetNetwork((c),(n),(u))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
@ -93,5 +93,8 @@
|
|||||||
__virConfWriteFile;
|
__virConfWriteFile;
|
||||||
__virConfWriteMem;
|
__virConfWriteMem;
|
||||||
|
|
||||||
|
__virGetDomain;
|
||||||
|
__virGetNetwork;
|
||||||
|
|
||||||
local: *;
|
local: *;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user