Expand description
Conversions between data acquired from kernel interfaces and Prolog facts. Includes some search procedures.
TODO: this is a mess of declaring facts within the Database scope and outside. Of querying different things while within the Database scope and outside. Of querying IO that has nothing to do with the database but is needed for topology discovery (subdevice paths).
This needs some serious look to figure out the patterns and arrange them in a way that makes sense.
Structs§
- A universe that can be interacted with using a Prolog like syntax.
Constants§
Traits§
- This structure takes in facts in string form.
Functions§
- Generates an iterator with Prolog statements representing facts about frame sizes of a video device.
- Finds the state of the link. Returns None if no suck link exists.
- Finds output interfaces which the selected entity is connected to.
- Sanitizes an entity name for inclusion in Prolog as an atom
- Encodes Topology as a series of Prolog facts.