]> git.ozlabs.org Git - petitboot/blob - discover/resource.h
b7e1a4649dfc7d699faa0aa816f3e3c8e4e9004c
[petitboot] / discover / resource.h
1 #ifndef RESOURCE_H
2 #define RESOURCE_H
3
4 #include <stdbool.h>
5
6 struct pb_url;
7
8 /**
9  * Data for local/remote resources. Resources may be "unresolved", in that
10  * they refer to a device that is not yet present. Unresolved resources
11  * simply contain parser-specific data (generally a device string parsed from
12  * the config file), and may be resolved by the parser once new devices appear.
13  */
14 struct resource {
15         bool resolved;
16         union {
17                 struct pb_url   *url;
18                 void            *info;
19         };
20 };
21
22 #endif /* RESOURCE_H */
23