Initial packaging for Tizen
[profile/ivi/gobject-introspection.git] / tests / scanner / barapp.c
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 #include "barapp.h"
3
4 #include <girepository.h>
5 #include <string.h>
6
7 G_DEFINE_TYPE(BarBaz, bar_baz, G_TYPE_OBJECT);
8
9 static void
10 bar_baz_class_init (BarBazClass *klass)
11 {
12 }
13
14 static void
15 bar_baz_init (BarBaz *object)
16 {
17 }
18
19 void
20 bar_app_func (void)
21 {
22 }
23
24 void
25 bar_app_func2 (int x, double y)
26 {
27 }
28
29 G_DEFINE_TYPE(MutterWindow, mutter_window, G_TYPE_OBJECT);
30
31 static void
32 mutter_window_class_init (MutterWindowClass *klass)
33 {
34 }
35
36 static void
37 mutter_window_init (MutterWindow *object)
38 {
39 }
40
41 void
42 mutter_window_func (MutterWindow *window,
43                     guint         v)
44 {
45 }
46
47 int
48 main(int argc, char **argv)
49 {
50   const char *prefix = "--introspect-dump=";
51   GError *error = NULL;
52   if (!(argc == 2 && g_str_has_prefix (argv[1], prefix)))
53     {
54       g_printerr ("usage: barapp --introspect-dump=types.txt,out.xml\\n");
55       return 1;
56     }
57   g_type_init ();
58
59   if (!g_irepository_dump (argv[1] + strlen (prefix), &error))
60     {
61       g_printerr ("%s\n", error->message);
62       return 1;
63     }
64   return 0;
65 }