Changeset bda60d9 in mainline for uspace/srv/devman/match.c
- Timestamp:
- 2010-03-19T14:40:14Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d347b53
- Parents:
- 7707954
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/match.c
r7707954 rbda60d9 89 89 } 90 90 91 void add_match_id(match_id_list_t *ids, match_id_t *id)92 {93 match_id_t *mid = NULL;94 link_t *link = ids->ids.next;95 96 while (link != &ids->ids) {97 mid = list_get_instance(link, match_id_t,link);98 if (mid->score < id->score) {99 break;100 }101 link = link->next;102 }103 104 list_insert_before(&id->link, link);105 }106 91 107 void clean_match_ids(match_id_list_t *ids)108 {109 link_t *link = NULL;110 match_id_t *id;111 112 while(!list_empty(&ids->ids)) {113 link = ids->ids.next;114 list_remove(link);115 id = list_get_instance(link, match_id_t, link);116 delete_match_id(id);117 }118 }119 92
Note:
See TracChangeset
for help on using the changeset viewer.