Kouhei Sutou
null+****@clear*****
Sat Nov 30 23:48:58 JST 2013
Kouhei Sutou 2013-11-30 23:48:58 +0900 (Sat, 30 Nov 2013) New Revision: 66544127e215b752993f2f6cac3cd03fd3e74ae1 https://github.com/groonga/groonga-gobject/commit/66544127e215b752993f2f6cac3cd03fd3e74ae1 Message: Import Added files: .gitignore COPYING Makefile.am README.md autogen.sh configure.ac groonga-gobject.pc.in groonga-gobject/Makefile.am groonga-gobject/ggrn-context.c groonga-gobject/ggrn-context.h groonga-gobject/ggrn.c groonga-gobject/ggrn.h Added: .gitignore (+21 -0) 100644 =================================================================== --- /dev/null +++ .gitignore 2013-11-30 23:48:58 +0900 (1de419e) @@ -0,0 +1,21 @@ +Makefile.in +Makefile +.deps/ +.libs/ +*.gir +*.typelib +*.o +*.lo +*.la +/aclocal.m4 +/autom4te.cache/ +/config.h.in +/config.h +/config.log +/config.status +/config/ +/configure +/m4/ +/groonga-gobject.pc +/libtool +/stamp-h1 Added: COPYING (+165 -0) 100644 =================================================================== --- /dev/null +++ COPYING 2013-11-30 23:48:58 +0900 (65c5ca8) @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. Added: Makefile.am (+22 -0) 100644 =================================================================== --- /dev/null +++ Makefile.am 2013-11-30 23:48:58 +0900 (6566fde) @@ -0,0 +1,22 @@ +# Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + +DISTCHECK_CONFIGURE_FLAGS = \ + --enable-introspection + +SUBDIRS = \ + groonga-gobject Added: README.md (+20 -0) 100644 =================================================================== --- /dev/null +++ README.md 2013-11-30 23:48:58 +0900 (08152d7) @@ -0,0 +1,20 @@ +# README + +## Name + +Groonga GObject + +## Description + +GObject wrapper of Groonga. TODO... + +## Authors + +* Kouhei Sutou `<kou �� clear-code.com>` + +## License + +LGPL 3.0 or later. See COPYING for details. + +(Kouhei Sutou has a right to change the license including contributed +patches.) Added: autogen.sh (+21 -0) 100755 =================================================================== --- /dev/null +++ autogen.sh 2013-11-30 23:48:58 +0900 (2447494) @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +set -u +set -e + +autoreconf -i Added: configure.ac (+105 -0) 100644 =================================================================== --- /dev/null +++ configure.ac 2013-11-30 23:48:58 +0900 (2a6ae7d) @@ -0,0 +1,105 @@ +# Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +AC_PREREQ(2.59) + +AC_INIT(groonga-gobject, [1.0.0], + groonga-talk �� lists.sourceforge.net) +AC_CONFIG_AUX_DIR([config]) +AC_CONFIG_MACRO_DIR([m4]) + +AC_CONFIG_SRCDIR([groonga-gobject/ggrn.h]) +AM_CONFIG_HEADER([config.h]) + +AM_INIT_AUTOMAKE(tar-pax foreign) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +AM_MAINTAINER_MODE + +AC_PROG_CC +AC_PROG_LIBTOOL + +LT_CURRENT=1 +LT_REVISION=0 +LT_AGE=1 +LT_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE" +AC_SUBST(LT_CURRENT) +AC_SUBST(LT_REVISION) +AC_SUBST(LT_AGE) +AC_SUBST(LT_VERSION_INFO) + +LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"' +AC_SUBST(LIBTOOL_EXPORT_OPTIONS) + +AC_DEFUN([CHECK_CFLAG], [ + AC_MSG_CHECKING([if gcc supports $1]) + old_CFLAGS=$CFLAGS + flag=`echo '$1' | sed -e 's,^-Wno-,-W,'` + CFLAGS="$CFLAGS $flag -Werror" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], + [check_cflag=yes], + [check_cflag=no]) + CFLAGS="$old_CFLAGS" + if test "x$check_cflag" = "xyes"; then + CFLAGS="$CFLAGS $1" + fi + AC_MSG_RESULT([$check_cflag]) +]) + +if test "$GCC" = "yes"; then + CHECK_CFLAG([-Wall]) + CHECK_CFLAG([-Wextra]) + CHECK_CFLAG([-Wmissing-prototypes]) +fi + +GGRN_CFLAGS="" +AC_ARG_ENABLE(debug, + [AS_HELP_STRING([--enable-debug], + [use debug flags (default=no)])], + [ggrn_debug="$enableval"], + [ggrn_debug="no"]) +if test "x$ggrn_debug" != "xno"; then + if test "$CLANG" = "yes"; then + CFLAGS="$GGRN_CFLAGS -O0 -g" + elif test "$GCC" = "yes"; then + CFLAGS="$GGRN_CFLAGS -O0 -g3" + fi +fi +AC_SUBST(GGRN_CFLAGS) + +GROONGA_REQUIRED=3.1.0 +AC_SUBST(GROONGA_REQUIRED) +PKG_CHECK_MODULES(GROONGA, [groonga >= ${GROONGA_REQUIRED}]) + +GLIB_REQUIRED=2.32.4 +AC_SUBST(GLIB_REQUIRED) +AM_PATH_GLIB_2_0([${GLIB_REQUIRED}], [], [], [gobject]) +GLIB_VERSION="${glib_config_major_version}.${glib_config_minor_version}.${glib_config_micro_version}" + +GOBJECT_INTROSPECTION_REQUIRE([1.32.1]) +GTK_DOC_CHECK([1.18-2]) + +AC_CONFIG_FILES([ + groonga-gobject.pc + Makefile + groonga-gobject/Makefile +]) + +AC_OUTPUT + +echo +echo "Configure Result:" +echo +echo " GLib : $GLIB_VERSION" Added: groonga-gobject.pc.in (+12 -0) 100644 =================================================================== --- /dev/null +++ groonga-gobject.pc.in 2013-11-30 23:48:58 +0900 (e8e8c47) @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +pkgincludedir=${includedir}/@PACKAGE_NAME@ + +Name: Groonga GObject +Description: GObject wrapper of Groonga +Version: @VERSION@ +Requires: gobject-2.0 >= @GLIB_REQUIRED@, groonga +Cflags: -I${pkgincludedir} +Libs: -L${libdir} -lgroonga-gobject Added: groonga-gobject/Makefile.am (+73 -0) 100644 =================================================================== --- /dev/null +++ groonga-gobject/Makefile.am 2013-11-30 23:48:58 +0900 (4a6ceb5) @@ -0,0 +1,73 @@ +# Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +CLEANFILES = + +AM_CPPFLAGS = \ + -I$(top_builddir) \ + -I$(top_srcdir) + +AM_CFLAGS = \ + $(GLIB_CFLAGS) \ + $(GROONGA_CFLAGS) \ + $(GGRN_CFLAGS) + +lib_LTLIBRARIES = \ + libgroonga-gobject.la + +libgroonga_gobject_la_LDFLAGS = \ + -version-info $(LT_VERSION_INFO) \ + -no-undefined + +libgroonga_gobject_la_LIBADD = \ + $(GLIB_LIBS) \ + $(GROONGA_LIBS) + +libgroonga_gobject_la_SOURCES = \ + ggrn.c \ + ggrn.h \ + ggrn-context.c \ + ggrn-context.h + +-include $(INTROSPECTION_MAKEFILE) +INTROSPECTION_GIRS = +INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) +INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) + +if HAVE_INTROSPECTION +introspection_sources = $(libgroonga_gobject_la_SOURCES) + +Groonga-1.0.gir: libgroonga-gobject.la +Groonga_1_0_gir_PACKAGES = gobject-2.0 glib-2.0 groonga +Groonga_1_0_gir_EXPORT_PACKAGES = groonga-gobject +Groonga_1_0_gir_INCLUDES = GObject-2.0 +Groonga_1_0_gir_CFLAGS = $(AM_CPPFLAGS) $(AM_CFLAGS) +Groonga_1_0_gir_LIBS = libgroonga-gobject.la +Groonga_1_0_gir_FILES = $(introspection_sources) +Groonga_1_0_gir_SCANNERFLAGS = \ + --identifier-prefix=GGrn \ + --symbol-prefix=ggrn +INTROSPECTION_GIRS += Groonga-1.0.gir + +girdir = $(datadir)/gir-1.0 +gir_DATA = $(INTROSPECTION_GIRS) + +typelibdir = $(libdir)/girepository-1.0 +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) + +CLEANFILES += \ + $(gir_DATA) \ + $(typelib_DATA) +endif Added: groonga-gobject/ggrn-context.c (+97 -0) 100644 =================================================================== --- /dev/null +++ groonga-gobject/ggrn-context.c 2013-11-30 23:48:58 +0900 (63217d1) @@ -0,0 +1,97 @@ +/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif /* HAVE_CONFIG_H */ + +#include <groonga.h> + +#include "ggrn-context.h" + +/** +* SECTION: ggrn-context +* @short_description: A greeter. +* +* The #GGrnContext is a class to keep display friendly greetings. +*/ +G_DEFINE_TYPE(GGrnContext, ggrn_context, G_TYPE_OBJECT) + +#define GGRN_CONTEXT_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE((obj), \ + GGRN_TYPE_CONTEXT, \ + GGrnContextPrivate)) + +typedef struct _GGrnContextPrivate GGrnContextPrivate; +struct _GGrnContextPrivate +{ + grn_ctx *ctx; +}; + +enum +{ + PROP_0, + N_PROPERTIES +}; + +static GParamSpec *properties[N_PROPERTIES] = {NULL,}; + +static void +ggrn_context_init(GGrnContext *object) +{ + GGrnContextPrivate *priv = GGRN_CONTEXT_GET_PRIVATE(object); + + priv->ctx = grn_ctx_open(0); +} + +static void +dispose(GObject *object) +{ + GGrnContextPrivate *priv = GGRN_CONTEXT_GET_PRIVATE(object); + + if (priv->ctx) { + grn_ctx_close(priv->ctx); + priv->ctx = NULL; + } + G_OBJECT_CLASS(ggrn_context_parent_class)->dispose(object); +} + +static void +ggrn_context_class_init(GGrnContextClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS(klass); + + object_class->dispose = dispose; + + g_type_class_add_private(object_class, sizeof(GGrnContextPrivate)); +} + +/** +* ggrn_context_new: +* +* Allocates a new #GGrnContext. +* +* Returns: a new #GGrnContext. +*/ +GGrnContext * +ggrn_context_new(void) +{ + GGrnContext *context; + context = g_object_new(GGRN_TYPE_CONTEXT, NULL); + return context; +} Added: groonga-gobject/ggrn-context.h (+57 -0) 100644 =================================================================== --- /dev/null +++ groonga-gobject/ggrn-context.h 2013-11-30 23:48:58 +0900 (08c8078) @@ -0,0 +1,57 @@ +/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef GGRN_CONTEXT_H +#define GGRN_CONTEXT_H + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define GGRN_TYPE_CONTEXT \ + (ggrn_context_get_type()) +#define GGRN_CONTEXT(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), GGRN_TYPE_CONTEXT, GGrnContext)) +#define GGRN_CONTEXT_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), GGRN_TYPE_CONTEXT, GGrnContextClass)) +#define GGRN_IS_CONTEXT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), GGRN_TYPE_CONTEXT)) +#define GGRN_IS_CONTEXT_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), GGRN_TYPE_CONTEXT)) +#define GGRN_CONTEXT_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS((obj), GGRN_TYPE_CONTEXT, GGrnContextClass)) + +typedef struct _GGrnContext GGrnContext; +typedef struct _GGrnContextClass GGrnContextClass; + +struct _GGrnContext +{ + GObject object; +}; + +struct _GGrnContextClass +{ + GObjectClass parent_class; +}; + +GType ggrn_context_get_type (void) G_GNUC_CONST; +GGrnContext *ggrn_context_new (void); + +G_END_DECLS + +#endif Added: groonga-gobject/ggrn.c (+52 -0) 100644 =================================================================== --- /dev/null +++ groonga-gobject/ggrn.c 2013-11-30 23:48:58 +0900 (94061ee) @@ -0,0 +1,52 @@ +/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ggrn.h" +#include <groonga.h> + +/** + * ggrn_init: + * @error: return location for a GError, or %NULL. + * + * Initialize Groonga GObject. You must call this function before + * you use any Groonga GObject functions. + * + * Returns: TRUE on success, FALSE if an error occurred. + */ +gboolean +ggrn_init(GError **error) +{ + grn_init(); + return TRUE; +} + +/** + * ggrn_fin: + * @error: return location for a GError, or %NULL. + * + * Finalize Groonga GObject. You must call this function after you + * finish to use Groonga GObject. + * + * Returns: TRUE on success, FALSE if an error occurred. + */ +gboolean +ggrn_fin(GError **error) +{ + grn_fin(); + return TRUE; +} Added: groonga-gobject/ggrn.h (+33 -0) 100644 =================================================================== --- /dev/null +++ groonga-gobject/ggrn.h 2013-11-30 23:48:58 +0900 (db8fed8) @@ -0,0 +1,33 @@ +/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright (C) 2013 Kouhei Sutou <kou �� clear-code.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 program 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 General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef GGRN_H +#define GGRN_H + +#include <glib.h> + +#include <groonga-gobject/ggrn-context.h> + +G_BEGIN_DECLS + +gboolean ggrn_init(GError **error); +gboolean ggrn_fin (GError **error); + +G_END_DECLS + +#endif -------------- next part -------------- HTML����������������������������... 다운로드