|
grim@123
|
1 |
/* |
|
grim@394
|
2 |
* Copyright (C) 2007-2010 Gary Kramlich <grim@reaperworld.com> |
|
grim@123
|
3 |
* |
|
grim@394
|
4 |
* This program is free software: you can redistribute it and/or modify |
|
grim@394
|
5 |
* it under the terms of the GNU General Public License as published by |
|
grim@394
|
6 |
* the Free Software Foundation, either version 3 of the License, or |
|
grim@394
|
7 |
* (at your option) any later version. |
|
grim@123
|
8 |
* |
|
grim@394
|
9 |
* This program is distributed in the hope that it will be useful, |
|
grim@394
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
grim@394
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
grim@394
|
12 |
* GNU General Public License for more details. |
|
grim@394
|
13 |
* |
|
grim@394
|
14 |
* You should have received a copy of the GNU General Public License |
|
grim@394
|
15 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
grim@123
|
16 |
*/ |
|
grim@123
|
17 |
#ifndef GPLATE_LIBRARY_H |
|
grim@123
|
18 |
#define GPLATE_LIBRARY_H |
|
grim@123
|
19 |
|
|
grim@123
|
20 |
#include <glib.h> |
|
grim@123
|
21 |
|
|
grim@123
|
22 |
#include <gplate/gplate-function.h> |
|
grim@123
|
23 |
#include <gplate/gplate-tag.h> |
|
grim@123
|
24 |
|
|
grim@123
|
25 |
G_BEGIN_DECLS |
|
grim@123
|
26 |
|
|
grim@171
|
27 |
typedef void (*GPlateLibraryTagsForeachFunc)(GType tag, const gchar *prefix, const gchar *suffix, gpointer data); |
|
grim@170
|
28 |
|
|
grim@128
|
29 |
gboolean gplate_library_add_function(const gchar *name, GType function, GError **error); |
|
grim@124
|
30 |
gboolean gplate_library_remove_function(const gchar *name, GError **error); |
|
grim@123
|
31 |
|
|
grim@169
|
32 |
gboolean gplate_library_add_tag(GType tag, GError **error); |
|
grim@169
|
33 |
gboolean gplate_library_remove_tag(GType tag, GError **error); |
|
grim@169
|
34 |
|
|
grim@128
|
35 |
gboolean gplate_library_bind_function(const gchar *name, GType tag, GError **error); |
|
grim@128
|
36 |
gboolean gplate_library_unbind_function(const gchar *name, GError **error); |
|
grim@128
|
37 |
|
|
grim@128
|
38 |
gboolean gplate_library_add_bound_function(const gchar *name, GType function, GType tag, GError **error); |
|
grim@128
|
39 |
|
|
grim@128
|
40 |
gboolean gplate_library_lookup_function(const gchar *name, GType *function, GType *tag, GError **error); |
|
grim@170
|
41 |
GType gplate_library_lookup_function_for_tag(const gchar *name, GType tag, GError **error); |
|
grim@170
|
42 |
|
|
grim@174
|
43 |
gboolean gplate_library_lookup_tag(GType tag, gchar **prefix, gchar **suffix, GError **error); |
|
grim@194
|
44 |
GType gplate_library_get_default_tag(void); |
|
grim@329
|
45 |
|
|
grim@203
|
46 |
gboolean gplate_library_set_default_function_for_tag(const gchar *name, GType tag, GError **error); |
|
grim@203
|
47 |
GType gplate_library_get_default_function_for_tag(GType tag, GError **error); |
|
grim@203
|
48 |
|
|
grim@170
|
49 |
void gplate_library_tags_foreach(GPlateLibraryTagsForeachFunc func, gpointer data); |
|
grim@123
|
50 |
|
|
grim@123
|
51 |
G_END_DECLS |
|
grim@123
|
52 |
|
|
grim@123
|
53 |
#endif /* GPLATE_LIBRARY_H */ |