| 1 |
/* |
| 2 |
* test-floating.h - Header for TestFloating |
| 3 |
* Copyright (C) 2010 Collabora Ltd. |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <glib-object.h> |
| 21 |
|
| 22 |
/* TestFloating */ |
| 23 |
|
| 24 |
typedef struct { |
| 25 |
GInitiallyUnowned parent; |
| 26 |
} TestFloating; |
| 27 |
|
| 28 |
typedef struct { |
| 29 |
GInitiallyUnownedClass parent_class; |
| 30 |
} TestFloatingClass; |
| 31 |
|
| 32 |
#define TEST_TYPE_FLOATING (test_floating_get_type ()) |
| 33 |
#define TEST_FLOATING(obj) \ |
| 34 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_FLOATING, TestFloating)) |
| 35 |
#define TEST_FLOATING_CLASS(klass) \ |
| 36 |
(G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_FLOATING, TestFloatingClass)) |
| 37 |
#define TEST_IS_FLOATING(obj) \ |
| 38 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_FLOATING)) |
| 39 |
#define TEST_IS_FLOATING_CLASS(klass) \ |
| 40 |
(G_TYPE_CHECK_CLASS_TYPE ((obj), TEST_TYPE_FLOATING)) |
| 41 |
#define TEST_FLOATING_GET_CLASS(obj) \ |
| 42 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_TYPE_FLOATING, TestFloatingClass)) |
| 43 |
|
| 44 |
GType test_floating_get_type (void); |
| 45 |
|
| 46 |
/* TestOwnedByLibrary */ |
| 47 |
|
| 48 |
typedef struct { |
| 49 |
GObject parent; |
| 50 |
} TestOwnedByLibrary; |
| 51 |
|
| 52 |
typedef struct { |
| 53 |
GObjectClass parent_class; |
| 54 |
} TestOwnedByLibraryClass; |
| 55 |
|
| 56 |
#define TEST_TYPE_OWNED_BY_LIBRARY (test_owned_by_library_get_type ()) |
| 57 |
#define TEST_OWNED_BY_LIBRARY(obj) \ |
| 58 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_OWNED_BY_LIBRARY, \ |
| 59 |
TestOwnedByLibrary)) |
| 60 |
#define TEST_OWNED_BY_LIBRARY_CLASS(klass) \ |
| 61 |
(G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_OWNED_BY_LIBRARY, \ |
| 62 |
TestOwnedByLibraryClass)) |
| 63 |
#define TEST_IS_OWNED_BY_LIBRARY(obj) \ |
| 64 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_OWNED_BY_LIBRARY)) |
| 65 |
#define TEST_IS_OWNED_BY_LIBRARY_CLASS(klass) \ |
| 66 |
(G_TYPE_CHECK_CLASS_TYPE ((obj), TEST_TYPE_OWNED_BY_LIBRARY)) |
| 67 |
#define TEST_OWNED_BY_LIBRARY_GET_CLASS(obj) \ |
| 68 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_TYPE_OWNED_BY_LIBRARY, \ |
| 69 |
TestOwnedByLibraryClass)) |
| 70 |
|
| 71 |
GType test_owned_by_library_get_type (void); |
| 72 |
void test_owned_by_library_release (TestOwnedByLibrary *self); |
| 73 |
GSList *test_owned_by_library_get_instance_list (void); |
| 74 |
|
| 75 |
/* TestFloatingAndSunk */ |
| 76 |
|
| 77 |
typedef struct { |
| 78 |
GInitiallyUnowned parent; |
| 79 |
} TestFloatingAndSunk; |
| 80 |
|
| 81 |
typedef struct { |
| 82 |
GInitiallyUnownedClass parent_class; |
| 83 |
} TestFloatingAndSunkClass; |
| 84 |
|
| 85 |
#define TEST_TYPE_FLOATING_AND_SUNK (test_floating_and_sunk_get_type ()) |
| 86 |
#define TEST_FLOATING_AND_SUNK(obj) \ |
| 87 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_FLOATING_AND_SUNK, \ |
| 88 |
TestFloatingAndSunk)) |
| 89 |
#define TEST_FLOATING_AND_SUNK_CLASS(klass) \ |
| 90 |
(G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_FLOATING_AND_SUNK, \ |
| 91 |
TestFloatingAndSunkClass)) |
| 92 |
#define TEST_IS_FLOATING_AND_SUNK(obj) \ |
| 93 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_FLOATING_AND_SUNK)) |
| 94 |
#define TEST_IS_FLOATING_AND_SUNK_CLASS(klass) \ |
| 95 |
(G_TYPE_CHECK_CLASS_TYPE ((obj), TEST_TYPE_FLOATING_AND_SUNK)) |
| 96 |
#define TEST_FLOATING_AND_SUNK_GET_CLASS(obj) \ |
| 97 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_TYPE_FLOATING_AND_SUNK, \ |
| 98 |
TestFloatingAndSunkClass)) |
| 99 |
|
| 100 |
GType test_floating_and_sunk_get_type (void); |
| 101 |
void test_floating_and_sunk_release (TestFloatingAndSunk *self); |
| 102 |
GSList *test_floating_and_sunk_get_instance_list (void); |