summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-05-05 17:44:49 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-05-05 17:44:49 +0100
commit08a09215bfd734bb797661822000d4dce36e1b23 (patch)
tree09e0d319b4260f3f687754b926bb18925dd74b8f /tests
parent53bbd7de157f869d36edc40f73a317467e88df29 (diff)
McpDispatchOperationPolicyIface: make the GInterface into public API
We can stay compatible as long as we don't change or reorder methods: adding methods to the end of a GInterface is considered to be a compatible change.
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/mcp-plugin.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/twisted/mcp-plugin.c b/tests/twisted/mcp-plugin.c
index 53aa1731..1c31acb8 100644
--- a/tests/twisted/mcp-plugin.c
+++ b/tests/twisted/mcp-plugin.c
@@ -183,8 +183,7 @@ static void
cdo_policy_iface_init (McpDispatchOperationPolicyIface *iface,
gpointer unused G_GNUC_UNUSED)
{
- mcp_dispatch_operation_policy_iface_implement_check (iface,
- test_permission_plugin_check_cdo);
+ iface->check = test_permission_plugin_check_cdo;
}
typedef struct {
@@ -378,8 +377,7 @@ static void
rej_cdo_policy_iface_init (McpDispatchOperationPolicyIface *iface,
gpointer unused G_GNUC_UNUSED)
{
- mcp_dispatch_operation_policy_iface_implement_check (iface,
- test_rejection_plugin_check_cdo);
+ iface->check = test_rejection_plugin_check_cdo;
}
static void