Blame gio/tests/modules/test-module-a.c

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