22 #include "softwarecontainer-common.h" 23 #include "containerabstractinterface.h" 24 #include "jsonparser.h" 31 LOG_DECLARE_CLASS_CONTEXT(
"DN",
"Device Node");
34 Device(std::string name =
"",
int mode = -1);
46 bool parse(
const json_t *element);
54 bool activate(std::shared_ptr<ContainerAbstractInterface> container);
62 void calculateDeviceMode(
const int appliedMode);
65 const std::string getName();
67 bool getIsconfigured ();
70 void setMode(
int _mode);
bool activate(std::shared_ptr< ContainerAbstractInterface > container)
Activates this device by running mknod and chmod commands which are run in the container.
bool parse(const json_t *element)
Configures this device by parsing the supplied JSON configuration string.
Developers guide to adding a config item: