diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-15 16:16:36 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-15 16:16:36 -0700 |
commit | 652b2d0c4305bbff41c456f31ee465f1103ec5f8 (patch) | |
tree | e5c9b534b0c1f7c52f969f38b3a1ffaf4e1316f1 /include/plugin.h | |
parent | 1d8ff99f756c96f4582e7246b0e8950875186ae9 (diff) | |
download | ofono-652b2d0c4305bbff41c456f31ee465f1103ec5f8.tar.bz2 |
plugin: Add debug support for external plugins
Diffstat (limited to 'include/plugin.h')
-rw-r--r-- | include/plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/plugin.h b/include/plugin.h index 6f580424..ca273beb 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -23,6 +23,7 @@ #define __OFONO_PLUGIN_H #include <ofono/version.h> +#include <ofono/log.h> #ifdef __cplusplus extern "C" { @@ -50,6 +51,8 @@ struct ofono_plugin_desc { int priority; int (*init) (void); void (*exit) (void); + void *debug_start; + void *debug_stop; }; /** @@ -69,10 +72,15 @@ struct ofono_plugin_desc { }; #else #define OFONO_PLUGIN_DEFINE(name, description, version, priority, init, exit) \ + extern struct ofono_debug_desc __start___debug[] \ + __attribute__ ((visibility("hidden"))); \ + extern struct ofono_debug_desc __stop___debug[] \ + __attribute__ ((visibility("hidden"))); \ extern struct ofono_plugin_desc ofono_plugin_desc \ __attribute__ ((visibility("default"))); \ struct ofono_plugin_desc ofono_plugin_desc = { \ - #name, description, version, priority, init, exit \ + #name, description, version, priority, init, exit, \ + __start___debug, __stop___debug \ }; #endif |