about summary refs log tree commit diff
path: root/src/libnm-client-public/nm-device.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-01-13 22:30:39 +0100
committerMichael Biebl <biebl@debian.org>2022-01-13 22:30:39 +0100
commit88c227d90a6b7b388c5c85d72802a0ca8f05ed5c (patch)
tree71f32df6617802270e8a78574bd8e1637dc532f4 /src/libnm-client-public/nm-device.h
parente74c568b07b50b97873fb4ee1d776dedefbd54d6 (diff)
New upstream version 1.34.0 upstream/1.34.0
Diffstat (limited to 'src/libnm-client-public/nm-device.h')
-rw-r--r--src/libnm-client-public/nm-device.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libnm-client-public/nm-device.h b/src/libnm-client-public/nm-device.h
index 62baac92..23b1a805 100644
--- a/src/libnm-client-public/nm-device.h
+++ b/src/libnm-client-public/nm-device.h
@@ -8,7 +8,7 @@
 #define __NM_DEVICE_H__
 
 #if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
-    #error "Only <NetworkManager.h> can be included directly."
+#error "Only <NetworkManager.h> can be included directly."
 #endif
 
 #include "nm-object.h"
@@ -57,6 +57,7 @@ _NM_DEPRECATED_SYNC_WRITABLE_PROPERTY
 #define NM_DEVICE_IP6_CONNECTIVITY      "ip6-connectivity"
 #define NM_DEVICE_INTERFACE_FLAGS       "interface-flags"
 #define NM_DEVICE_HW_ADDRESS            "hw-address"
+#define NM_DEVICE_PORTS                 "ports"
 
 /**
  * NMDevice:
@@ -141,6 +142,9 @@ const char *         nm_device_get_hw_address(NMDevice *device);
 NMDeviceCapabilities nm_device_get_capabilities(NMDevice *device);
 gboolean             nm_device_get_managed(NMDevice *device);
 
+NM_AVAILABLE_IN_1_34
+const GPtrArray *nm_device_get_ports(NMDevice *device);
+
 NM_AVAILABLE_IN_1_2
 NM_DEPRECATED_IN_1_22
 _NM_DEPRECATED_SYNC_METHOD