From 0bf54f57b3212c020be3dd493829fa67516a7143 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 9 Jul 2010 21:14:25 -0500 Subject: Filling out the approver prototype --- tests/test-approver.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test-approver.c b/tests/test-approver.c index 609036c..44cd5b4 100644 --- a/tests/test-approver.c +++ b/tests/test-approver.c @@ -35,7 +35,7 @@ GType test_approver_get_type (void); static void test_approver_class_init (TestApproverClass *klass); static void test_approver_init (TestApprover *self); -static void _notification_approver_server_approve_item (void); +static gboolean _notification_approver_server_approve_item (TestApprover * ta, const gchar * id, const gchar * category, guint pid, const gchar * address, const gchar * path, gboolean * approved, GError ** error); #include "../src/notification-approver-server.h" @@ -66,10 +66,13 @@ test_approver_init (TestApprover *self) return; } -static void -_notification_approver_server_approve_item (void) +static gboolean +_notification_approver_server_approve_item (TestApprover * ta, const gchar * id, const gchar * category, guint pid, const gchar * address, const gchar * path, gboolean * approved, GError ** error) { - return; + *approved = TRUE; + + + return TRUE; } static void -- cgit v1.2.3