diff options
author | Thomas Haller <thaller@redhat.com> | 2015-10-29 11:27:55 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-11-02 13:57:02 +0100 |
commit | 4b1e1f8aabcc61337b04ebd5ce956327b2e7ce03 (patch) | |
tree | 8fcc4594e4a551b217e378f078230961561e09d4 /src/platform/nm-platform.h | |
parent | f8fa4a0970464c0a6851dbc60d28c55aef81d403 (diff) | |
download | NetworkManager-4b1e1f8aabcc61337b04ebd5ce956327b2e7ce03.tar.gz |
platform: promise that the link lnk is an immutable NMPObject and expose it
Expose internal lnk object and promise in the API that the object will
not be modified (which allows the user to ref it).
Diffstat (limited to 'src/platform/nm-platform.h')
-rw-r--r-- | src/platform/nm-platform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h index 31b28700a4..fa53792fc9 100644 --- a/src/platform/nm-platform.h +++ b/src/platform/nm-platform.h @@ -457,7 +457,7 @@ typedef struct { const NMPlatformLink *(*link_get_by_ifname) (NMPlatform *platform, const char *ifname); const NMPlatformLink *(*link_get_by_address) (NMPlatform *platform, gconstpointer address, size_t length); - gconstpointer (*link_get_lnk) (NMPlatform *platform, int ifindex, NMLinkType link_type, const NMPlatformLink **out_link); + const NMPObject *(*link_get_lnk) (NMPlatform *platform, int ifindex, NMLinkType link_type, const NMPlatformLink **out_link); GArray *(*link_get_all) (NMPlatform *); gboolean (*link_add) (NMPlatform *, @@ -696,7 +696,7 @@ char *nm_platform_master_get_option (NMPlatform *self, int ifindex, const char * gboolean nm_platform_slave_set_option (NMPlatform *self, int ifindex, const char *option, const char *value); char *nm_platform_slave_get_option (NMPlatform *self, int ifindex, const char *option); -gconstpointer nm_platform_link_get_lnk (NMPlatform *self, int ifindex, NMLinkType link_type, const NMPlatformLink **out_link); +const NMPObject *nm_platform_link_get_lnk (NMPlatform *self, int ifindex, NMLinkType link_type, const NMPlatformLink **out_link); const NMPlatformLnkGre *nm_platform_link_get_lnk_gre (NMPlatform *self, int ifindex, const NMPlatformLink **out_link); const NMPlatformLnkInfiniband *nm_platform_link_get_lnk_infiniband (NMPlatform *self, int ifindex, const NMPlatformLink **out_link); const NMPlatformLnkMacvlan *nm_platform_link_get_lnk_macvlan (NMPlatform *self, int ifindex, const NMPlatformLink **out_link); |