| 1 | /* |
| 2 | Copyright(C) 2009-2017 Brazil |
| 3 | Copyright(C) 2021 Sutou Kouhei <[email protected]> |
| 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.1 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 GNU |
| 13 | 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 library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include "grn_io.h" |
| 23 | #include "grn_db.h" |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | extern "C" { |
| 27 | #endif |
| 28 | |
| 29 | grn_io * |
| 30 | grn_obj_get_io(grn_ctx *ctx, grn_obj *obj); |
| 31 | |
| 32 | void |
| 33 | grn_obj_set_error(grn_ctx *ctx, |
| 34 | grn_obj *obj, |
| 35 | grn_rc rc, |
| 36 | grn_id id, |
| 37 | const char *tag, |
| 38 | const char *format, |
| 39 | ...); |
| 40 | |
| 41 | void |
| 42 | grn_obj_log(grn_ctx *ctx, |
| 43 | grn_obj *obj, |
| 44 | grn_log_level level, |
| 45 | grn_id id, |
| 46 | const char *tag, |
| 47 | const char *format, |
| 48 | ...); |
| 49 | |
| 50 | #ifdef __cplusplus |
| 51 | } |
| 52 | #endif |