/* -*- c-basic-offset: 2 -*- */
/*
  Copyright(C) 2015 Brazil

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License version 2.1 as published by the Free Software Foundation.

  This library 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
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef GRN_REPORT_H
#define GRN_REPORT_H

#include "grn_ctx.h"

#ifdef __cplusplus
extern "C" {
#endif

const grn_log_level GRN_REPORT_INDEX_LOG_LEVEL;

void grn_report_index(grn_ctx *ctx,
                      const char *action,
                      const char *tag,
                      grn_obj *index);

#ifdef __cplusplus
}
#endif

#endif /* GRN_REPORT_H */

/* -*- c-basic-offset: 2 -*- */
/*
  Copyright(C) 2015 Brazil

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License version 2.1 as published by the Free Software Foundation.

  This library 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
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef GRN_REPORT_H
#define GRN_REPORT_H

#include "grn_ctx.h"

#ifdef __cplusplus
extern "C" {
#endif

extern const grn_log_level GRN_REPORT_INDEX_LOG_LEVEL;

void grn_report_index(grn_ctx *ctx,
                      const char *action,
                      const char *tag,
                      grn_obj *index);

#ifdef __cplusplus
}
#endif

#endif /* GRN_REPORT_H */

Add missing extern to variable in header
Add missing extern to variable in header

This missing extern causes following error in OSX:

```log
...
2403 warnings generated.
  CXXLD    libgroonga.la
duplicate symbol _GRN_REPORT_INDEX_LOG_LEVEL in:
    .libs/db.o
    .libs/expr.o
duplicate symbol _GRN_REPORT_INDEX_LOG_LEVEL in:
    .libs/db.o
    .libs/report.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libgroonga.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
```
