glibrdf.h (669B) - raw
1
2 /*
3 * glibrdf.h
4 * Copyright 2012 Dan Callaghan <djc@djc.id.au>
5 * Licensed under GPLv3
6 */
7
8 #ifndef _GLIBRDF_H
9 #define _GLIBRDF_H
10
11 #include <glib-object.h>
12 #include <librdf.h>
13
14 GType librdf_node_get_gtype(void);
15 #define G_TYPE_RDF_NODE librdf_node_get_gtype()
16 typedef void (*librdf_gvalue_adaptor_func)(const gchar *lv, GValue *value_out);
17 typedef librdf_gvalue_adaptor_func (*librdf_gvalue_adaptor_map_func)(librdf_uri *datatype_uri);
18 librdf_gvalue_adaptor_func librdf_default_gvalue_adaptor_map(librdf_uri *datatype_uri);
19 void librdf_node_get_literal_gvalue(librdf_node *node,
20 librdf_gvalue_adaptor_map_func adaptor_map,
21 GValue *value_out);
22
23 #endif