Last change
on this file since 6efec7e3 was f42ee6f, checked in by Matthieu Riolo <matthieu.riolo@…>, 6 years ago |
Add basic structures for sysman
Conflicts:
boot/Makefile.common
|
-
Property mode
set to
100644
|
File size:
406 bytes
|
Line | |
---|
1 | #ifndef SYSMAN_DEP_H
|
---|
2 | #define SYSMAN_DEP_H
|
---|
3 |
|
---|
4 | #include <adt/list.h>
|
---|
5 |
|
---|
6 | #include "unit.h"
|
---|
7 |
|
---|
8 | /** Dependency edge between unit in dependency graph */
|
---|
9 | typedef struct {
|
---|
10 | link_t dependants;
|
---|
11 | link_t dependencies;
|
---|
12 |
|
---|
13 | /** Unit that depends on another */
|
---|
14 | unit_t *dependant;
|
---|
15 | /** Unit that is dependency for another */
|
---|
16 | unit_t *dependency;
|
---|
17 | } unit_dependency_t;
|
---|
18 |
|
---|
19 | extern int dep_add_dependency(unit_t *, unit_t *);
|
---|
20 |
|
---|
21 | #endif
|
---|
22 |
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.