Changeset 694253c in mainline for uspace/srv/sysman/dep.c
- Timestamp:
- 2019-08-03T07:35:41Z (5 years ago)
- Children:
- c0c388d2
- Parents:
- f42ee6f
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-03-13 02:06:30)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-03 07:35:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/dep.c
rf42ee6f r694253c 10 10 int dep_add_dependency(unit_t *dependant, unit_t *dependency) 11 11 { 12 unit_dependency_t *edge = malloc(sizeof(unit_ t));12 unit_dependency_t *edge = malloc(sizeof(unit_dependency_t)); 13 13 if (edge == NULL) { 14 14 return ENOMEM; 15 15 } 16 link_initialize(&edge->dependants); 17 link_initialize(&edge->dependencies); 18 16 19 // TODO check existence of the edge 17 20 // TODO locking 18 21 // TODO check types and states of connected units 19 /* Do not initalize links as they are immediately inserted into list */20 22 list_append(&edge->dependants, &dependency->dependants); 21 23 list_append(&edge->dependencies, &dependant->dependencies);
Note:
See TracChangeset
for help on using the changeset viewer.