| 1 |
// the Plugin interface - inherit this to define new plugin types |
| 2 |
|
| 3 |
// For all support, instructions and copyright go to: |
| 4 |
// http://e2guardian.org/ |
| 5 |
// Released under the GPL v2, with the OpenSSL exception described in the README file. |
| 6 |
|
| 7 |
#ifndef __HPP_PLUGIN |
| 8 |
#define __HPP_PLUGIN |
| 9 |
|
| 10 |
// INCLUDES |
| 11 |
|
| 12 |
// DECLARATIONS |
| 13 |
|
| 14 |
class Plugin |
| 15 |
{ |
| 16 |
public: |
| 17 |
virtual ~Plugin(){}; |
| 18 |
|
| 19 |
// plugin initialise/quit routines. |
| 20 |
// return 0 for OK, < 0 for error, > 0 for warning |
| 21 |
virtual int init(void *args) = 0; |
| 22 |
virtual int quit() = 0; |
| 23 |
}; |
| 24 |
|
| 25 |
#endif |