libnm: add NM_AVAILABLE_IN_1_0_6 to "nm-dbus-interface.h"

"nm-dbus-interface.h" can be used without glib/libnm, hence we must
workaround a missing NM_AVAILABLE_IN_1_0_6 macro.

(cherry picked from commit c60ff9e7e0)
This commit is contained in:
Thomas Haller 2015-09-25 16:18:00 +02:00
parent b1dffe1391
commit e002b6a4fe

View file

@ -26,6 +26,10 @@
#ifndef __NM_DBUS_INTERFACE_H__ #ifndef __NM_DBUS_INTERFACE_H__
#define __NM_DBUS_INTERFACE_H__ #define __NM_DBUS_INTERFACE_H__
#ifndef NM_VERSION_H
#define NM_AVAILABLE_IN_1_0_6
#endif
/* /*
* dbus services details * dbus services details
*/ */
@ -549,6 +553,7 @@ typedef enum {
* *
* Since: 1.0.6 * Since: 1.0.6
**/ **/
NM_AVAILABLE_IN_1_0_6
typedef enum { typedef enum {
NM_METERED_UNKNOWN = 0, NM_METERED_UNKNOWN = 0,
NM_METERED_YES = 1, NM_METERED_YES = 1,
@ -636,4 +641,8 @@ typedef enum /*< flags >*/ {
NM_SECRET_AGENT_CAPABILITY_LAST = NM_SECRET_AGENT_CAPABILITY_VPN_HINTS NM_SECRET_AGENT_CAPABILITY_LAST = NM_SECRET_AGENT_CAPABILITY_VPN_HINTS
} NMSecretAgentCapabilities; } NMSecretAgentCapabilities;
#ifndef NM_VERSION_H
#undef NM_AVAILABLE_IN_1_0_6
#endif
#endif /* __NM_DBUS_INTERFACE_H__ */ #endif /* __NM_DBUS_INTERFACE_H__ */