summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
Diffstat (limited to 'discover')
-rw-r--r--discover/Makefile.am1
-rw-r--r--discover/resource.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/discover/Makefile.am b/discover/Makefile.am
index 0e20835..a858855 100644
--- a/discover/Makefile.am
+++ b/discover/Makefile.am
@@ -54,6 +54,7 @@ pb_discover_SOURCES = \
params.h \
pb-discover.c \
pb-discover.h \
+ resource.h \
udev.c \
udev.h \
user-event.c \
diff --git a/discover/resource.h b/discover/resource.h
new file mode 100644
index 0000000..b7e1a46
--- /dev/null
+++ b/discover/resource.h
@@ -0,0 +1,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 */
+
OpenPOWER on IntegriCloud