20 #ifndef GAMEPADPLUGIN_H
21 #define GAMEPADPLUGIN_H
23 #include <RdkPluginBase.h>
25 #include <sys/types.h>
26 #include <netinet/in.h>
39 GamepadPlugin(std::shared_ptr<rt_dobby_schema> &containerConfig,
40 const std::shared_ptr<DobbyRdkPluginUtils> &utils,
41 const std::string &rootfsPath);
44 inline std::string
name()
const override
58 void addDevices(int64_t major, int64_t minor,
int numDevices,
const std::string& type,
const std::string& mode)
const;
63 const std::string mName;
64 std::shared_ptr<rt_dobby_schema> mContainerConfig;
65 const std::shared_ptr<DobbyRdkPluginUtils> mUtils;
Dobby Gamepad plugin.
Definition: GamepadPlugin.h:37
gid_t getInputGroupId() const
Finds input group id in /etc/group file.
Definition: GamepadPlugin.cpp:182
void addGidMapping(gid_t host_id, gid_t container_id) const
Adds gid mapping to container_config->linux->gid_mappings.
Definition: GamepadPlugin.cpp:143
void addDevices(int64_t major, int64_t minor, int numDevices, const std::string &type, const std::string &mode) const
Adds devices to containe_config->linux->resources->devices.
Definition: GamepadPlugin.cpp:109
std::string name() const override
Should return the name of the plugin.
Definition: GamepadPlugin.h:44
unsigned hookHints() const override
Should return a bitfield of the hook points implemented by the plugin.
Definition: GamepadPlugin.cpp:38
bool postInstallation() override
Dobby Hook - run in host namespace once when container bundle is downloaded.
Definition: GamepadPlugin.cpp:48
std::vector< std::string > getDependencies() const override
Should return the names of the plugins this plugin depends on.
Definition: GamepadPlugin.cpp:81
void addAdditionalGid(gid_t gid) const
Adds additionalGid to container_config->process->user->additional_gids.
Definition: GamepadPlugin.cpp:165
Basic object that provides the default overrides for a plugin.
Definition: RdkPluginBase.h:34