~ubuntu-branches/ubuntu/precise/gst0.10-python/precise

« back to all changes in this revision

Viewing changes to testsuite/test-object.c

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2006-06-25 19:37:45 UTC
  • Revision ID: james.westby@ubuntu.com-20060625193745-9yeg0wq56r24n57x
Tags: upstream-0.10.4
ImportĀ upstreamĀ versionĀ 0.10.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "test-object.h"
 
2
 
 
3
enum
 
4
{
 
5
  /* FILL ME */
 
6
  SIGNAL_EVENT,
 
7
  LAST_SIGNAL
 
8
};
 
9
 
 
10
 
 
11
static guint test_object_signals[LAST_SIGNAL] = { 0 };
 
12
 
 
13
G_DEFINE_TYPE(TestObject, test_object, G_TYPE_OBJECT);
 
14
 
 
15
static void test_object_init (TestObject *self) {}
 
16
static void test_object_class_init (TestObjectClass *klass)
 
17
{
 
18
  test_object_signals[SIGNAL_EVENT] =
 
19
      g_signal_new ("event", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
 
20
                    G_STRUCT_OFFSET (TestObjectClass, event), NULL, NULL,
 
21
                    g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1,
 
22
                    GST_TYPE_EVENT);
 
23
 
 
24
}
 
25