grim/gplate

some more testing migration stuff.

2012-09-04, Gary Kramlich
7f8e0e4f250f
some more testing migration stuff.
Variables aren't done yet
/*
* GPlate - GObject based templating library
* Copyright (C) 2007-2012 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library 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. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GPLATE_LIBRARY_H
#define GPLATE_LIBRARY_H
#include <glib.h>
#include <gplate/gplate-function.h>
#include <gplate/gplate-tag.h>
G_BEGIN_DECLS
typedef void (*GPlateLibraryTagsForeachFunc)(GType tag, const gchar *prefix, const gchar *suffix, gpointer data);
gboolean gplate_library_add_function(const gchar *name, GType function, GError **error);
gboolean gplate_library_remove_function(const gchar *name, GError **error);
gboolean gplate_library_add_tag(GType tag, GError **error);
gboolean gplate_library_remove_tag(GType tag, GError **error);
gboolean gplate_library_bind_function(const gchar *name, GType tag, GError **error);
gboolean gplate_library_unbind_function(const gchar *name, GError **error);
gboolean gplate_library_add_bound_function(const gchar *name, GType function, GType tag, GError **error);
gboolean gplate_library_lookup_function(const gchar *name, GType *function, GType *tag, GError **error);
GType gplate_library_lookup_function_for_tag(const gchar *name, GType tag, GError **error);
gboolean gplate_library_lookup_tag(GType tag, gchar **prefix, gchar **suffix, GError **error);
GType gplate_library_get_default_tag(void);
gboolean gplate_library_set_default_function_for_tag(const gchar *name, GType tag, GError **error);
GType gplate_library_get_default_function_for_tag(GType tag, GError **error);
void gplate_library_tags_foreach(GPlateLibraryTagsForeachFunc func, gpointer data);
G_END_DECLS
#endif /* GPLATE_LIBRARY_H */