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