IDZEBRA
2.2.7
|
#include <sys/types.h>
#include <yaz/proto.h>
#include <yaz/odr.h>
#include <idzebra/res.h>
#include <idzebra/data1.h>
#include <idzebra/snippet.h>
Go to the source code of this file.
Data Structures | |
struct | RecWord |
struct | ZebraRecStream |
record reader stream More... | |
struct | recExtractCtrl |
record extract for indexing More... | |
struct | recRetrieveCtrl |
struct | recType |
Macros | |
#define | ZEBRA_XPATH_ELM_BEGIN "_XPATH_BEGIN" |
#define | ZEBRA_XPATH_ELM_END "_XPATH_END" |
#define | ZEBRA_XPATH_CDATA "_XPATH_CDATA" |
#define | ZEBRA_XPATH_ATTR_NAME "_XPATH_ATTR_NAME" |
#define | ZEBRA_XPATH_ATTR_CDATA "_XPATH_ATTR_CDATA" |
#define | ZEBRA_GROUP_INDEX_NAME "_GROUP_" |
#define | RECCTRL_EXTRACT_OK 0 |
#define | RECCTRL_EXTRACT_EOF 1 |
#define | RECCTRL_EXTRACT_ERROR_GENERIC 2 |
#define | RECCTRL_EXTRACT_ERROR_NO_SUCH_FILTER 3 |
#define | RECCTRL_EXTRACT_SKIP 4 |
Typedefs | |
typedef struct recType * | RecType |
typedef struct recTypeClass * | RecTypeClass |
typedef struct recTypes * | RecTypes |
Enumerations | |
enum | zebra_recctrl_action_t { action_insert = 1 , action_replace , action_delete , action_update , action_a_delete } |
Functions | |
RecTypeClass | recTypeClass_create (Res res, NMEM nmem) |
void | recTypeClass_load_modules (RecTypeClass *rts, NMEM nmem, const char *module_path) |
RecTypeClass | recTypeClass_add_modules (Res res, NMEM nmem, const char *module_path) |
void | recTypeClass_destroy (RecTypeClass rtc) |
void | recTypeClass_info (RecTypeClass rtc, void *cd, void(*cb)(void *cd, const char *s)) |
RecTypes | recTypes_init (RecTypeClass rtc, data1_handle dh) |
void | recTypes_destroy (RecTypes recTypes) |
void | recTypes_default_handlers (RecTypes recTypes, Res res) |
RecType | recType_byName (RecTypes rts, Res res, const char *name, void **clientDataP) |
typedef struct recTypeClass* RecTypeClass |
Definition at line 264 of file recctrl.c.
References recTypeInstance::clientData, recType::config, recTypes::entries, recTypeInstance::init_flag, recType::name, recTypeInstance::next, recTypeInstance::recType, and ZEBRA_OK.
Referenced by zebra_buffer_extract_record(), zebra_extract_file(), zebra_get_rec_snippets(), and zebra_record_fetch().
RecTypeClass recTypeClass_add_modules | ( | Res | res, |
NMEM | nmem, | ||
const char * | module_path | ||
) |
RecTypeClass recTypeClass_create | ( | Res | res, |
NMEM | nmem | ||
) |
Definition at line 58 of file recctrl.c.
References recTypeClass_add().
Referenced by zebra_start_res().
void recTypeClass_destroy | ( | RecTypeClass | rtc | ) |
Definition at line 223 of file recctrl.c.
References recTypeClass::module_handle, and recTypeClass::next.
Referenced by zebra_stop().
void recTypeClass_info | ( | RecTypeClass | rtc, |
void * | cd, | ||
void(*)(void *cd, const char *s) | cb | ||
) |
Definition at line 216 of file recctrl.c.
References recType::name, recTypeClass::next, and recTypeClass::recType.
Referenced by zebra_filter_info().
void recTypeClass_load_modules | ( | RecTypeClass * | rts, |
NMEM | nmem, | ||
const char * | module_path | ||
) |
Definition at line 177 of file recctrl.c.
References FILENAME_MAX, and load_from_dir().
Referenced by zebra_start_res().
void recTypes_destroy | ( | RecTypes | recTypes | ) |
Definition at line 253 of file recctrl.c.
References recTypeInstance::clientData, destroy(), recTypes::entries, recTypeInstance::init_flag, recTypeInstance::next, and recTypeInstance::recType.
Referenced by zebra_register_close(), and zebra_register_open().
RecTypes recTypes_init | ( | RecTypeClass | rtc, |
data1_handle | dh | ||
) |
Definition at line 234 of file recctrl.c.
References data1_nmem_get(), recTypes::dh, recTypes::entries, recTypeClass::next, recTypeInstance::next, and recTypeClass::recType.
Referenced by zebra_register_open().