1 /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2 /*
3  *  Copyright (C) 2006 Kouhei Sutou <kou@cozmixng.org>
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 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
13  *  GNU 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 program; if not, write to the
17  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  *  Boston, MA  02111-1307  USA
19  *
20  *  $Id: tomoe-rb.h 1206 2007-04-20 10:29:28Z ktou $
21  */
22 
23 #ifndef __TOMOE_RB_H__
24 #define __TOMOE_RB_H__
25 
26 #include "rbtomoe.h"
27 
28 G_BEGIN_DECLS
29 
30 #ifdef GOBJ2RVALU
31 #  define HAVE_GOBJ2RVALU
32 #endif
33 
34 #ifndef HAVE_GOBJ2RVALU
35 #  define GOBJ2RVALU(gobj) (_tomoe_ruby_object_from_instance_with_unref(gobj))
36 VALUE _tomoe_ruby_object_from_instance_with_unref(gpointer instance);
37 #endif
38 
39 #ifndef RVAL2CSTR2
40 #  define RVAL2CSTR2(v) (NIL_P(v) ? NULL : RVAL2CSTR(v))
41 #endif
42 
43 void Init_tomoe(void);
44 
45 void _tomoe_rb_init_tomoe_candidate(VALUE mTomoe);
46 void _tomoe_rb_init_tomoe_char(VALUE mTomoe);
47 void _tomoe_rb_init_tomoe_config(VALUE mTomoe);
48 void _tomoe_rb_init_tomoe_context(VALUE mTomoe);
49 void _tomoe_rb_init_tomoe_dict(VALUE mTomoe);
50 void _tomoe_rb_init_tomoe_query(VALUE mTomoe);
51 void _tomoe_rb_init_tomoe_reading(VALUE mTomoe);
52 void _tomoe_rb_init_tomoe_recognizer(VALUE mTomoe);
53 void _tomoe_rb_init_tomoe_writing(VALUE mTomoe);
54 
55 void _tomoe_rb_set_log_domain(const gchar *domain);
56 
57 G_END_DECLS
58 
59 #endif /* __TOMOE_RB_H__ */
60 
61 /*
62 vi:expandtab
63 */
64