device: fix serialization and deserialization of DeviceFound

DeviceFound is a bit flag. So, it is necessary to support the case
that multiple bits are set.

Follow-up for 918e6f1c01.
This commit is contained in:
Yu Watanabe
2018-04-25 22:05:00 +09:00
parent 22ce84de18
commit 75d0aba49b
2 changed files with 70 additions and 21 deletions
-3
View File
@@ -37,6 +37,3 @@ extern const UnitVTable device_vtable;
int device_found_node(Manager *m, const char *node, bool add, DeviceFound found, bool now);
bool device_shall_be_bound_by(Unit *device, Unit *u);
const char *device_found_to_string(DeviceFound f) _const_;
DeviceFound device_found_from_string(const char *s) _pure_;