| 1 | /* |
| 2 | Copyright(C) 2010-2016 Brazil |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or |
| 5 | modify it under the terms of the GNU Lesser General Public |
| 6 | License as published by the Free Software Foundation; either |
| 7 | version 2.1 of the License, or (at your option) any later version. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "grn.h"cxx . . $ `<file>/lib/grn.h`/ |
| 22 | #include "grn_ctx.h"cxx . . $ `<file>/lib/grn_ctx.h`/ |
| 23 | #include "grn_store.h"cxx . . $ `<file>/lib/grn_store.h`/ |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | extern "C" { |
| 27 | #endif |
| 28 | |
| 29 | #ifdef WIN32 |
| 30 | typedef HINSTANCE grn_dl; |
| 31 | typedef FARPROC grn_dl_symbol; |
| 32 | |
| 33 | #else |
| 34 | typedef void * grn_dlcxx . . $ grn_dl#; |
| 35 | typedef void * grn_dl_symbolcxx . . $ grn_dl_symbol#; |
| 36 | #endif |
| 37 | |
| 38 | typedef struct _grn_plugincxx . . $ _grn_plugin# grn_plugincxx . . $ grn_plugin#; |
| 39 | |
| 40 | struct _grn_plugincxx . . $ _grn_plugin# { |
| 41 | char pathcxx . . $ _grn_plugin#path.[PATH_MAXcxx . . $ `<external>/6347054901304145714/limits.h:13:9`!]; |
| 42 | grn_dlcxx . . $ grn_dl# dlcxx . . $ _grn_plugin#dl.; |
| 43 | grn_plugin_funccxx . . $ grn_plugin_func# init_funccxx . . $ _grn_plugin#init_func.; |
| 44 | grn_plugin_funccxx . . $ grn_plugin_func# register_funccxx . . $ _grn_plugin#register_func.; |
| 45 | grn_plugin_funccxx . . $ grn_plugin_func# unregister_funccxx . . $ _grn_plugin#unregister_func.; |
| 46 | grn_plugin_funccxx . . $ grn_plugin_func# fin_funccxx . . $ _grn_plugin#fin_func.; |
| 47 | int refcountcxx . . $ _grn_plugin#refcount.; |
| 48 | }; |
| 49 | |
| 50 | void grn_plugin_init_from_envcxx . . $ grn_plugin_init_from_env(49f6e7a06ebc5aa8).(void); |
| 51 | grn_rccxx . . $ grn_rc# grn_plugins_initcxx . . $ grn_plugins_init(d5bb96df31a8101).(void); |
| 52 | grn_rccxx . . $ grn_rc# grn_plugins_fincxx . . $ grn_plugins_fin(d5bb96df31a8101).(void); |
| 53 | grn_idcxx . . $ grn_id# grn_plugin_opencxx . . $ grn_plugin_open(1be90328514dd2c4).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *filename); |
| 54 | grn_rccxx . . $ grn_rc# grn_plugin_closecxx . . $ grn_plugin_close(40dd0a06a64dbe5d).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_idcxx . . $ grn_id# id); |
| 55 | grn_idcxx . . $ grn_id# grn_plugin_referencecxx . . $ grn_plugin_reference(1be90328514dd2c4).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *filename); |
| 56 | const char *grn_plugin_pathcxx . . $ grn_plugin_path(7cd85086f4e96fc4).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_idcxx . . $ grn_id# id); |
| 57 | char *grn_plugin_find_pathcxx . . $ grn_plugin_find_path(f175fe58fb3ff6f1).(grn_ctxcxx . . $ grn_ctx# *ctx, const char *name); |
| 58 | void grn_plugin_ensure_registeredcxx . . $ grn_plugin_ensure_registered(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *proc); |
| 59 | |
| 60 | #ifdef __cplusplus |
| 61 | } |
| 62 | #endif |