summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-11 10:11:31 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-11 10:11:31 +0100
commitc85710d90547ea8529d4348d5ddb36bd28387443 (patch)
tree00cf212dc32f6790cc3d52b8d5b0c635efca5b0f
parent40b0fa5d177129a09f62a4bff4efdc6af77b8a8a (diff)
add the signals class information to DkpClient
-rw-r--r--tools/dkp-client.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/dkp-client.c b/tools/dkp-client.c
index c72c433..9d5f56f 100644
--- a/tools/dkp-client.c
+++ b/tools/dkp-client.c
@@ -31,8 +31,8 @@
#include "dkp-client-device.h"
static void dkp_client_class_init (DkpClientClass *klass);
-static void dkp_client_init (DkpClient *client);
-static void dkp_client_finalize (GObject *object);
+static void dkp_client_init (DkpClient *client);
+static void dkp_client_finalize (GObject *object);
#define DKP_CLIENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DKP_TYPE_CLIENT, DkpClientPrivate))
@@ -167,6 +167,26 @@ dkp_client_class_init (DkpClientClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = dkp_client_finalize;
+
+ signals [DKP_CLIENT_ADDED] =
+ g_signal_new ("added",
+ G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (DkpClientClass, added),
+ NULL, NULL, g_cclosure_marshal_VOID__POINTER,
+ G_TYPE_NONE, 1, G_TYPE_POINTER);
+ signals [DKP_CLIENT_REMOVED] =
+ g_signal_new ("removed",
+ G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (DkpClientClass, removed),
+ NULL, NULL, g_cclosure_marshal_VOID__POINTER,
+ G_TYPE_NONE, 1, G_TYPE_POINTER);
+ signals [DKP_CLIENT_CHANGED] =
+ g_signal_new ("changed",
+ G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (DkpClientClass, changed),
+ NULL, NULL, g_cclosure_marshal_VOID__POINTER,
+ G_TYPE_NONE, 1, G_TYPE_POINTER);
+
g_type_class_add_private (klass, sizeof (DkpClientPrivate));
}