diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-27 17:41:10 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-29 19:28:33 +0000 |
commit | c00effb16665ac09f3fa5bb781f2e65b0899f66b (patch) | |
tree | a34a359c9ef6e0dc097dbf40bbed00f66b2f9a60 /mission-control-plugins | |
parent | 8010027de1f36e2151ec7fdb438cbe4144e51383 (diff) |
Define MCP_API_VERSION_5_18, so implementations can use #ifdef
Diffstat (limited to 'mission-control-plugins')
-rw-r--r-- | mission-control-plugins/loader.c | 15 | ||||
-rw-r--r-- | mission-control-plugins/mission-control-plugins.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/mission-control-plugins/loader.c b/mission-control-plugins/loader.c index 640d1d87..a23028b3 100644 --- a/mission-control-plugins/loader.c +++ b/mission-control-plugins/loader.c @@ -62,6 +62,21 @@ static gboolean debugging = FALSE; #endif /** + * MCP_API_VERSION_5_18: + * + * Defined to allow simple plugin implementations to support both Mission + * Control 5.16 and 5.18 plugin APIs: + * + * |[ + * #ifdef MCP_API_VERSION_5_18 + * ... // implement MC 5.18 API + * #else + * ... // implement MC 5.16 API + * #endif + * ]| + */ + +/** * mcp_set_debug: * @debug: whether to log debug output * diff --git a/mission-control-plugins/mission-control-plugins.h b/mission-control-plugins/mission-control-plugins.h index 806f472a..aa846f78 100644 --- a/mission-control-plugins/mission-control-plugins.h +++ b/mission-control-plugins/mission-control-plugins.h @@ -25,6 +25,8 @@ #include <glib-object.h> #include <telepathy-glib/telepathy-glib.h> +#define MCP_API_VERSION_5_18 (518) + typedef enum { MCP_PARAMETER_FLAG_NONE = 0, } McpParameterFlags; |