Import Upstream version 2.72.4

This commit is contained in:
evinadmin 2023-07-04 11:23:22 +02:00
commit 4ef3ff9793
2003 changed files with 1332420 additions and 0 deletions

View file

@ -0,0 +1,13 @@
libtestmodulea = shared_module('testmodulea', 'test-module-a.c',
dependencies : [libglib_dep, libgobject_dep, libgmodule_dep, libgio_dep],
c_args : [ ],
install : installed_tests_enabled,
install_dir : join_paths(installed_tests_execdir, 'modules'),
)
libtestmoduleb = shared_module('testmoduleb', 'test-module-b.c',
dependencies : [libglib_dep, libgobject_dep, libgmodule_dep, libgio_dep],
c_args : [ ],
install : installed_tests_enabled,
install_dir : join_paths(installed_tests_execdir, 'modules'),
)

View file

@ -0,0 +1,20 @@
#ifndef GLIB_TEST_SYMBOL_VISIBILITY
#define GLIB_TEST_SYMBOL_VISIBILITY
/* This is the same check that's done in configure to create config.h */
#ifdef _WIN32
#ifdef GLIB_STATIC_COMPILATION
#define GLIB_TEST_EXPORT_SYMBOL extern
#else
#ifdef _MSC_VER
#define GLIB_TEST_EXPORT_SYMBOL __declspec(dllexport) extern
#else
#define GLIB_TEST_EXPORT_SYMBOL __attribute__ ((visibility ("default"))) __declspec(dllexport) extern
#endif
#endif
/* Matches GCC and Clang */
#elif defined(__GNUC__) && (__GNUC__ >= 4)
# define GLIB_TEST_EXPORT_SYMBOL __attribute__((visibility("default"))) extern
#endif
#endif /* GLIB_TEST_SYMBOL_VISIBILITY */

View file

@ -0,0 +1,63 @@
/* 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 "config.h" /* for _GLIB_EXTERN */
#include <gio/gio.h>
#include "symbol-visibility.h"
typedef struct _TestA {
GObject parent;
} TestA;
typedef struct _TestAClass {
GObjectClass parent_class;
} TestAClass;
GType test_a_get_type (void);
G_DEFINE_TYPE (TestA, test_a, G_TYPE_OBJECT)
static void
test_a_class_init (TestAClass *class)
{
}
static void
test_a_init (TestA *self)
{
}
GLIB_TEST_EXPORT_SYMBOL void
g_io_module_load (GIOModule *module)
{
g_io_extension_point_implement ("test-extension-point",
test_a_get_type (),
"test-a",
30);
}
GLIB_TEST_EXPORT_SYMBOL void
g_io_module_unload (GIOModule *module)
{
}

View file

@ -0,0 +1,63 @@
/* 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 "config.h" /* for _GLIB_EXTERN */
#include <gio/gio.h>
#include "symbol-visibility.h"
typedef struct _TestB {
GObject parent;
} TestB;
typedef struct _TestBClass {
GObjectClass parent_class;
} TestBClass;
GType test_b_get_type (void);
G_DEFINE_TYPE (TestB, test_b, G_TYPE_OBJECT)
static void
test_b_class_init (TestBClass *class)
{
}
static void
test_b_init (TestB *self)
{
}
GLIB_TEST_EXPORT_SYMBOL void
g_io_module_load (GIOModule *module)
{
g_io_extension_point_implement ("test-extension-point",
test_b_get_type (),
"test-b",
40);
}
GLIB_TEST_EXPORT_SYMBOL void
g_io_module_unload (GIOModule *module)
{
}