summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-05 14:53:54 +0200
committerTom Gundersen <teg@jklm.no>2014-07-14 16:47:04 +0200
commit3f2650377631aed3bc26fdbc3a2eef6e33cdf7e7 (patch)
tree29ade8c7586393e652acf2b8e95c525fb0936876 /src/network/networkd.h
parent7c1cff4ff79f3121189403a8c1b7c350925b3aaa (diff)
networkd: netdev - rename 'enslave' to 'join'
Enslave only really makes sense when referring to bridges and bonds, so try to be a bit more neutral.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 0f0ecd5c43..d09ab61adf 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -53,13 +53,13 @@ typedef struct Route Route;
typedef struct Manager Manager;
typedef struct AddressPool AddressPool;
-typedef struct netdev_enslave_callback netdev_enslave_callback;
+typedef struct netdev_join_callback netdev_join_callback;
-struct netdev_enslave_callback {
+struct netdev_join_callback {
sd_rtnl_message_handler_t callback;
Link *link;
- LIST_FIELDS(netdev_enslave_callback, callbacks);
+ LIST_FIELDS(netdev_join_callback, callbacks);
};
typedef enum MacVlanMode {
@@ -153,7 +153,7 @@ struct NetDev {
union in_addr_union remote;
union in_addr_union group;
- LIST_HEAD(netdev_enslave_callback, callbacks);
+ LIST_HEAD(netdev_join_callback, callbacks);
};
typedef enum DHCPSupport {
@@ -378,7 +378,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(NetDev*, netdev_unref);
int netdev_get(Manager *manager, const char *name, NetDev **ret);
int netdev_set_ifindex(NetDev *netdev, sd_rtnl_message *newlink);
-int netdev_enslave(NetDev *netdev, Link *link, sd_rtnl_message_handler_t cb);
+int netdev_join(NetDev *netdev, Link *link, sd_rtnl_message_handler_t cb);
int netdev_create_tunnel(NetDev *netdev, Link *link, sd_rtnl_message_handler_t callback);
int netdev_create_veth(NetDev *netdev, sd_rtnl_message_handler_t callback);
int netdev_create_vxlan(NetDev *netdev, Link *link, sd_rtnl_message_handler_t callback);