Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Typedefs | Functions
plugin.h File Reference
#include <stddef.h>
#include <groonga.h>
Include dependency graph for plugin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRN_PLUGIN_INIT   grn_plugin_impl_init
#define GRN_PLUGIN_REGISTER   grn_plugin_impl_register
#define GRN_PLUGIN_FIN   grn_plugin_impl_fin
#define GRN_PLUGIN_EXPORT
#define GRN_PLUGIN_MALLOC(ctx, size)   grn_plugin_malloc((ctx), (size), __FILE__, __LINE__, __FUNCTION__)
#define GRN_PLUGIN_REALLOC(ctx, ptr, size)   grn_plugin_realloc((ctx), (ptr), (size), __FILE__, __LINE__, __FUNCTION__)
#define GRN_PLUGIN_FREE(ctx, ptr)   grn_plugin_free((ctx), (ptr), __FILE__, __LINE__, __FUNCTION__)
#define GRN_PLUGIN_LOG(ctx, level,...)   GRN_LOG((ctx), (level), __VA_ARGS__)
#define GRN_PLUGIN_SET_ERROR(ctx, level, error_code,...)
#define GRN_PLUGIN_ERROR(ctx, error_code,...)   GRN_PLUGIN_SET_ERROR(ctx, GRN_LOG_ERROR, error_code, __VA_ARGS__)

Typedefs

typedef struct _grn_plugin_mutex grn_plugin_mutex

Functions

GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_INIT (grn_ctx *ctx)
GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_REGISTER (grn_ctx *ctx)
GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_FIN (grn_ctx *ctx)
GRN_API void * grn_plugin_malloc (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
GRN_API void * grn_plugin_realloc (grn_ctx *ctx, void *ptr, size_t size, const char *file, int line, const char *func)
GRN_API void grn_plugin_free (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
GRN_API void grn_plugin_set_error (grn_ctx *ctx, grn_log_level level, grn_rc error_code, const char *file, int line, const char *func, const char *format,...) GRN_ATTRIBUTE_PRINTF(7)
GRN_API void grn_plugin_backtrace (grn_ctx *ctx)
GRN_API void grn_plugin_logtrace (grn_ctx *ctx, grn_log_level level)
GRN_API grn_plugin_mutexgrn_plugin_mutex_open (grn_ctx *ctx)
GRN_API grn_plugin_mutexgrn_plugin_mutex_create (grn_ctx *ctx)
GRN_API void grn_plugin_mutex_close (grn_ctx *ctx, grn_plugin_mutex *mutex)
GRN_API void grn_plugin_mutex_destroy (grn_ctx *ctx, grn_plugin_mutex *mutex)
GRN_API void grn_plugin_mutex_lock (grn_ctx *ctx, grn_plugin_mutex *mutex)
GRN_API void grn_plugin_mutex_unlock (grn_ctx *ctx, grn_plugin_mutex *mutex)
GRN_API grn_objgrn_plugin_proc_alloc (grn_ctx *ctx, grn_user_data *user_data, grn_id domain, grn_obj_flags flags)
GRN_API const char * grn_plugin_win32_base_dir (void)
GRN_API int grn_plugin_charlen (grn_ctx *ctx, const char *str_ptr, unsigned int str_length, grn_encoding encoding)
GRN_API int grn_plugin_isspace (grn_ctx *ctx, const char *str_ptr, unsigned int str_length, grn_encoding encoding)

Macro Definition Documentation

#define GRN_PLUGIN_ERROR (   ctx,
  error_code,
  ... 
)    GRN_PLUGIN_SET_ERROR(ctx, GRN_LOG_ERROR, error_code, __VA_ARGS__)

Definition at line 119 of file plugin.h.

#define GRN_PLUGIN_EXPORT

Definition at line 36 of file plugin.h.

#define GRN_PLUGIN_FIN   grn_plugin_impl_fin

Definition at line 31 of file plugin.h.

#define GRN_PLUGIN_FREE (   ctx,
  ptr 
)    grn_plugin_free((ctx), (ptr), __FILE__, __LINE__, __FUNCTION__)

Definition at line 73 of file plugin.h.

#define GRN_PLUGIN_INIT   grn_plugin_impl_init

Definition at line 29 of file plugin.h.

#define GRN_PLUGIN_LOG (   ctx,
  level,
  ... 
)    GRN_LOG((ctx), (level), __VA_ARGS__)

Definition at line 82 of file plugin.h.

#define GRN_PLUGIN_MALLOC (   ctx,
  size 
)    grn_plugin_malloc((ctx), (size), __FILE__, __LINE__, __FUNCTION__)

Definition at line 58 of file plugin.h.

#define GRN_PLUGIN_REALLOC (   ctx,
  ptr,
  size 
)    grn_plugin_realloc((ctx), (ptr), (size), __FILE__, __LINE__, __FUNCTION__)

Definition at line 66 of file plugin.h.

#define GRN_PLUGIN_REGISTER   grn_plugin_impl_register

Definition at line 30 of file plugin.h.

#define GRN_PLUGIN_SET_ERROR (   ctx,
  level,
  error_code,
  ... 
)
Value:
do { \
grn_plugin_set_error(ctx, level, error_code, \
__FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); \
GRN_LOG(ctx, level, __VA_ARGS__); \
grn_plugin_backtrace(ctx); \
grn_plugin_logtrace(ctx, level); \
} while (0)

Definition at line 105 of file plugin.h.

Typedef Documentation

Definition at line 126 of file plugin.h.

Function Documentation

GRN_API void grn_plugin_backtrace ( grn_ctx ctx)

Definition at line 566 of file plugin.c.

GRN_API int grn_plugin_charlen ( grn_ctx ctx,
const char *  str_ptr,
unsigned int  str_length,
grn_encoding  encoding 
)

Definition at line 652 of file plugin.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_FIN ( grn_ctx ctx)

Definition at line 294 of file tsv.c.

Here is the call graph for this function:

GRN_API void grn_plugin_free ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 529 of file plugin.c.

GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_INIT ( grn_ctx ctx)

Definition at line 268 of file tsv.c.

Here is the call graph for this function:

GRN_API int grn_plugin_isspace ( grn_ctx ctx,
const char *  str_ptr,
unsigned int  str_length,
grn_encoding  encoding 
)

Definition at line 662 of file plugin.c.

Here is the caller graph for this function:

GRN_API void grn_plugin_logtrace ( grn_ctx ctx,
grn_log_level  level 
)

Definition at line 572 of file plugin.c.

GRN_API void* grn_plugin_malloc ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 515 of file plugin.c.

GRN_API void grn_plugin_mutex_close ( grn_ctx ctx,
grn_plugin_mutex mutex 
)

Definition at line 601 of file plugin.c.

Here is the caller graph for this function:

GRN_API grn_plugin_mutex* grn_plugin_mutex_create ( grn_ctx ctx)

Definition at line 595 of file plugin.c.

Here is the call graph for this function:

GRN_API void grn_plugin_mutex_destroy ( grn_ctx ctx,
grn_plugin_mutex mutex 
)

Definition at line 610 of file plugin.c.

Here is the call graph for this function:

GRN_API void grn_plugin_mutex_lock ( grn_ctx ctx,
grn_plugin_mutex mutex 
)

Definition at line 616 of file plugin.c.

GRN_API grn_plugin_mutex* grn_plugin_mutex_open ( grn_ctx ctx)

Definition at line 584 of file plugin.c.

Here is the caller graph for this function:

GRN_API void grn_plugin_mutex_unlock ( grn_ctx ctx,
grn_plugin_mutex mutex 
)

Definition at line 624 of file plugin.c.

GRN_API grn_obj* grn_plugin_proc_alloc ( grn_ctx ctx,
grn_user_data user_data,
grn_id  domain,
grn_obj_flags  flags 
)

Definition at line 632 of file plugin.c.

Here is the call graph for this function:

GRN_API void* grn_plugin_realloc ( grn_ctx ctx,
void *  ptr,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 522 of file plugin.c.

GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_REGISTER ( grn_ctx ctx)

Definition at line 284 of file tsv.c.

Here is the call graph for this function:

GRN_API void grn_plugin_set_error ( grn_ctx ctx,
grn_log_level  level,
grn_rc  error_code,
const char *  file,
int  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 546 of file plugin.c.

Here is the call graph for this function:

GRN_API const char* grn_plugin_win32_base_dir ( void  )

Definition at line 639 of file plugin.c.

Here is the call graph for this function: