2013-12-24 06:03:20 +01:00
|
|
|
/* Test module for GIOModule tests
|
|
|
|
* Copyright (C) 2013 Red Hat, Inc
|
|
|
|
* Author: Matthias Clasen
|
|
|
|
*
|
|
|
|
* This work is provided "as is"; redistribution and modification
|
|
|
|
* in whole or in part, in any medium, physical or electronic is
|
|
|
|
* permitted without restriction.
|
|
|
|
*
|
|
|
|
* This work is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
* In no event shall the authors or contributors be liable for any
|
|
|
|
* direct, indirect, incidental, special, exemplary, or consequential
|
|
|
|
* damages (including, but not limited to, procurement of substitute
|
|
|
|
* goods or services; loss of use, data, or profits; or business
|
|
|
|
* interruption) however caused and on any theory of liability, whether
|
|
|
|
* in contract, strict liability, or tort (including negligence or
|
|
|
|
* otherwise) arising in any way out of the use of this software, even
|
|
|
|
* if advised of the possibility of such damage.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <gio/gio.h>
|
|
|
|
|
2016-12-21 03:16:30 +01:00
|
|
|
#include "symbol-visibility.h"
|
|
|
|
|
2013-12-24 06:03:20 +01:00
|
|
|
typedef struct _TestA {
|
|
|
|
GObject parent;
|
|
|
|
} TestA;
|
|
|
|
|
|
|
|
typedef struct _TestAClass {
|
|
|
|
GObjectClass parent_class;
|
|
|
|
} TestAClass;
|
|
|
|
|
2018-02-19 15:14:06 +01:00
|
|
|
GType test_a_get_type (void);
|
|
|
|
|
2013-12-24 06:03:20 +01:00
|
|
|
G_DEFINE_TYPE (TestA, test_a, G_TYPE_OBJECT)
|
|
|
|
|
|
|
|
static void
|
|
|
|
test_a_class_init (TestAClass *class)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
test_a_init (TestA *self)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-12-21 03:16:30 +01:00
|
|
|
GLIB_TEST_EXPORT_SYMBOL void
|
2013-12-24 06:03:20 +01:00
|
|
|
g_io_module_load (GIOModule *module)
|
|
|
|
{
|
|
|
|
g_io_extension_point_implement ("test-extension-point",
|
|
|
|
test_a_get_type (),
|
|
|
|
"test-a",
|
|
|
|
30);
|
|
|
|
}
|
|
|
|
|
2016-12-21 03:16:30 +01:00
|
|
|
GLIB_TEST_EXPORT_SYMBOL void
|
2013-12-24 06:03:20 +01:00
|
|
|
g_io_module_unload (GIOModule *module)
|
|
|
|
{
|
|
|
|
}
|