mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
Deprecate the conn, dom and net fields in the _virError structure.
* include/libvirt/libvirt.h.in: Add VIR_DEPRECATED macro. * src/internal.h: Internal code is allowed to use deprecated features, so override VIR_DEPRECATED here. * include/libvirt/virterror.h: Deprecate the conn, dom and net fields in the _virError structure.
This commit is contained in:
parent
1d8d4f86b6
commit
f60dc0bc09
@ -1,3 +1,12 @@
|
|||||||
|
Fri May 23 09:23:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
Deprecate the conn, dom and net fields in the _virError structure.
|
||||||
|
* include/libvirt/libvirt.h.in: Add VIR_DEPRECATED macro.
|
||||||
|
* src/internal.h: Internal code is allowed to use deprecated
|
||||||
|
features, so override VIR_DEPRECATED here.
|
||||||
|
* include/libvirt/virterror.h: Deprecate the conn, dom and net
|
||||||
|
fields in the _virError structure.
|
||||||
|
|
||||||
Fri May 23 08:56:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
Fri May 23 08:56:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
Standardize use of header files, making internal.h primary.
|
Standardize use of header files, making internal.h primary.
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* -*- c -*-
|
/* -*- c -*-
|
||||||
* libvirt.h:
|
* libvirt.h:
|
||||||
* Summary: core interfaces for the libvirt library
|
* Summary: core interfaces for the libvirt library
|
||||||
@ -21,6 +20,15 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef VIR_DEPRECATED
|
||||||
|
/* The feature is present in gcc-3.1 and newer. */
|
||||||
|
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||||
|
# define VIR_DEPRECATED __attribute__((__deprecated__))
|
||||||
|
# else
|
||||||
|
# define VIR_DEPRECATED /* nothing */
|
||||||
|
# endif
|
||||||
|
#endif /* VIR_DEPRECATED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnect:
|
* virConnect:
|
||||||
*
|
*
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* -*- c -*-
|
/* -*- c -*-
|
||||||
* libvirt.h:
|
* libvirt.h:
|
||||||
* Summary: core interfaces for the libvirt library
|
* Summary: core interfaces for the libvirt library
|
||||||
@ -21,6 +20,15 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef VIR_DEPRECATED
|
||||||
|
/* The feature is present in gcc-3.1 and newer. */
|
||||||
|
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||||
|
# define VIR_DEPRECATED __attribute__((__deprecated__))
|
||||||
|
# else
|
||||||
|
# define VIR_DEPRECATED /* nothing */
|
||||||
|
# endif
|
||||||
|
#endif /* VIR_DEPRECATED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnect:
|
* virConnect:
|
||||||
*
|
*
|
||||||
|
@ -76,14 +76,15 @@ struct _virError {
|
|||||||
int domain; /* What part of the library raised this error */
|
int domain; /* What part of the library raised this error */
|
||||||
char *message;/* human-readable informative error message */
|
char *message;/* human-readable informative error message */
|
||||||
virErrorLevel level;/* how consequent is the error */
|
virErrorLevel level;/* how consequent is the error */
|
||||||
virConnectPtr conn; /* connection if available, see note above */
|
virConnectPtr conn VIR_DEPRECATED; /* connection if available,
|
||||||
virDomainPtr dom; /* domain if available, see note above */
|
see note above */
|
||||||
|
virDomainPtr dom VIR_DEPRECATED; /* domain if available, see note above */
|
||||||
char *str1; /* extra string information */
|
char *str1; /* extra string information */
|
||||||
char *str2; /* extra string information */
|
char *str2; /* extra string information */
|
||||||
char *str3; /* extra string information */
|
char *str3; /* extra string information */
|
||||||
int int1; /* extra number information */
|
int int1; /* extra number information */
|
||||||
int int2; /* extra number information */
|
int int2; /* extra number information */
|
||||||
virNetworkPtr net; /* network if available, see note above */
|
virNetworkPtr net VIR_DEPRECATED; /* network if available, see note above */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,6 +24,12 @@
|
|||||||
#define pthread_mutex_unlock(lk) /*empty*/
|
#define pthread_mutex_unlock(lk) /*empty*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* The library itself is allowed to use deprecated functions /
|
||||||
|
* variables, so effectively undefine the deprecated attribute
|
||||||
|
* which would otherwise be defined in libvirt.h.
|
||||||
|
*/
|
||||||
|
#define VIR_DEPRECATED /*empty*/
|
||||||
|
|
||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
|
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user