• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Test module for GIOModule tests
2  * Copyright (C) 2013 Red Hat, Inc
3  * Author: Matthias Clasen
4  *
5  * This work is provided "as is"; redistribution and modification
6  * in whole or in part, in any medium, physical or electronic is
7  * permitted without restriction.
8  *
9  * This work is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * In no event shall the authors or contributors be liable for any
14  * direct, indirect, incidental, special, exemplary, or consequential
15  * damages (including, but not limited to, procurement of substitute
16  * goods or services; loss of use, data, or profits; or business
17  * interruption) however caused and on any theory of liability, whether
18  * in contract, strict liability, or tort (including negligence or
19  * otherwise) arising in any way out of the use of this software, even
20  * if advised of the possibility of such damage.
21  */
22 
23 #include "config.h" /* for _GLIB_EXTERN */
24 
25 #include <gio/gio.h>
26 
27 #include "symbol-visibility.h"
28 
29 typedef struct _TestA {
30   GObject parent;
31 } TestA;
32 
33 typedef struct _TestAClass {
34   GObjectClass parent_class;
35 } TestAClass;
36 
37 GType test_a_get_type (void);
38 
G_DEFINE_TYPE(TestA,test_a,G_TYPE_OBJECT)39 G_DEFINE_TYPE (TestA, test_a, G_TYPE_OBJECT)
40 
41 static void
42 test_a_class_init (TestAClass *class)
43 {
44 }
45 
46 static void
test_a_init(TestA * self)47 test_a_init (TestA *self)
48 {
49 }
50 
51 GLIB_TEST_EXPORT_SYMBOL void
g_io_module_load(GIOModule * module)52 g_io_module_load (GIOModule *module)
53 {
54   g_io_extension_point_implement ("test-extension-point",
55                                   test_a_get_type (),
56                                   "test-a",
57                                   30);
58 }
59 
60 GLIB_TEST_EXPORT_SYMBOL void
g_io_module_unload(GIOModule * module)61 g_io_module_unload (GIOModule *module)
62 {
63 }
64