Groonga
Loading...
Searching...
No Matches
option.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRN_OPTION_REVISION_NONE   ((grn_option_revision)0)
#define GRN_OPTION_REVISION_UNCHANGED   ((grn_option_revision)1)
#define GRN_OPTION_VALUES_EACH_BEGIN(ctx, option_values, i, name, name_size)
#define GRN_OPTION_VALUES_EACH_END()

Typedefs

typedef void * grn_option_revision

Macro Definition Documentation

◆ GRN_OPTION_REVISION_NONE

#define GRN_OPTION_REVISION_NONE   ((grn_option_revision)0)

◆ GRN_OPTION_REVISION_UNCHANGED

#define GRN_OPTION_REVISION_UNCHANGED   ((grn_option_revision)1)

◆ GRN_OPTION_VALUES_EACH_BEGIN

#define GRN_OPTION_VALUES_EACH_BEGIN ( ctx,
option_values,
i,
name,
name_size )
Value:
do { \
grn_ctx *ctx_ = (ctx); \
grn_obj *option_values_ = (option_values); \
unsigned int i_, n_; \
\
n_ = grn_vector_size(ctx_, option_values_); \
for (i_ = 0; i_ < n_; i_ += 2) { \
unsigned int i = i_ + 1; \
const char *name; \
unsigned int name_size; \
grn_id name_domain_; \
\
name_size = grn_vector_get_element(ctx_, \
option_values_, \
i_, \
&name, \
NULL, \
&name_domain_); \
if (!grn_type_id_is_text_family(ctx_, name_domain_)) { \
continue; \
}
struct _grn_ctx grn_ctx
grn_ctx is the most important object.
Definition groonga.h:332
uint32_t grn_id
Definition groonga.h:44
struct _grn_obj grn_obj
The generic Groonga object type.
Definition groonga.h:310
GRN_API bool grn_type_id_is_text_family(grn_ctx *ctx, grn_id id)
GRN_API uint32_t grn_vector_get_element(grn_ctx *ctx, grn_obj *vector, uint32_t offset, const char **str, uint32_t *weight, grn_id *domain)
GRN_API uint32_t grn_vector_size(grn_ctx *ctx, grn_obj *vector)

◆ GRN_OPTION_VALUES_EACH_END

#define GRN_OPTION_VALUES_EACH_END ( )
Value:
} \
} while (false)

Typedef Documentation

◆ grn_option_revision

typedef void* grn_option_revision