path: root/src/mtp_layer3.c
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-17 11:54:39 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-17 14:11:26 +0100
commit0e2f9116f846968d5eaf90cf21b7648f1964ae8b (patch)
tree5b197a8a0dcec12b9842f85f3a704782dbb90ba2 /src/mtp_layer3.c
parent4a3743440bd77aa0cec240e103aa2c7ce954b714 (diff)
mtp: Rename link_data to mtp_link and move out the transport specific things
Rename link_data to mtp_link and move it into the mtp_data header file, also remove the union to ease creating more of the subtypes. This is done in preparation to the linkset knowing more about the link (e.g. having a link test per link instead of per link).
Diffstat (limited to 'src/mtp_layer3.c')
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c
index 531e121..c3f3878 100644
--- a/src/mtp_layer3.c
+++ b/src/mtp_layer3.c
@@ -551,11 +551,11 @@ static int mtp_int_submit(struct mtp_link_set *link, int pc, int sls, int type,
return 0;
-static struct link_data *find_next_link(struct mtp_link_set *set,
- struct link_data *data)
+static struct mtp_link *find_next_link(struct mtp_link_set *set,
+ struct mtp_link *data)
int found = 0;
- struct link_data *next;
+ struct mtp_link *next;
if (llist_empty(&set->links))
return NULL;
@@ -581,7 +581,7 @@ static struct link_data *find_next_link(struct mtp_link_set *set,
void mtp_link_set_init_slc(struct mtp_link_set *set)
- struct link_data *link = NULL;
+ struct mtp_link *link = NULL;
int i;
@@ -591,7 +591,7 @@ void mtp_link_set_init_slc(struct mtp_link_set *set)
-void mtp_link_set_add_link(struct mtp_link_set *set, struct link_data *lnk)
+void mtp_link_set_add_link(struct mtp_link_set *set, struct mtp_link *lnk)
llist_add_tail(&lnk->entry, &set->links);