Skip to content

Improve plugin interface #11

@leg0

Description

@leg0

Currently, it is very difficult to store state of the plugin without resorting to global variables. To remedy this, the plugins should create an object, and return pointer to it to winlirc. The object is reference counted.

  • removes need for init and deinit. when object is created, then the plugin is initialized, and when the object is destroyed, the plugin is deinitialized.
  • no more global variables in plugins
  • multiple instances of same plugin possible
IPlugin* createPluginObject();

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions