IDZEBRA  2.1.2
Data Structures | Functions | Variables
mod_text.c File Reference
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <idzebra/util.h>
#include <idzebra/recctrl.h>
#include <yaz/oid_db.h>

Go to the source code of this file.

Data Structures

struct  filter_info
 
struct  buf_info
 

Functions

static void * filter_init (Res res, RecType recType)
 
static ZEBRA_RES filter_config (void *clientData, Res res, const char *args)
 
static void filter_destroy (void *clientData)
 
static struct buf_infobuf_open (struct recExtractCtrl *p)
 
static int buf_getchar (struct filter_info *tinfo, struct buf_info *fi, char *dst)
 
static void buf_close (struct buf_info *fi)
 
static int filter_extract (void *clientData, struct recExtractCtrl *p)
 
static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p)
 

Variables

static struct recType filter_type
 
RecType idzebra_filter []
 

Function Documentation

static void buf_close ( struct buf_info fi)
static

Definition at line 100 of file mod_text.c.

References buf_info::buf.

Referenced by filter_extract().

static int buf_getchar ( struct filter_info tinfo,
struct buf_info fi,
char *  dst 
)
static
static struct buf_info* buf_open ( struct recExtractCtrl p)
static

Definition at line 67 of file mod_text.c.

References buf_info::buf, buf_info::max, buf_info::offset, and buf_info::p.

Referenced by filter_extract().

static ZEBRA_RES filter_config ( void *  clientData,
Res  res,
const char *  args 
)
static

Definition at line 43 of file mod_text.c.

References filter_info::sep, and ZEBRA_OK.

static void filter_destroy ( void *  clientData)
static

Definition at line 53 of file mod_text.c.

References filter_info::sep.

static int filter_extract ( void *  clientData,
struct recExtractCtrl p 
)
static
static void* filter_init ( Res  res,
RecType  recType 
)
static

Definition at line 36 of file mod_text.c.

References filter_info::sep.

static int filter_retrieve ( void *  clientData,
struct recRetrieveCtrl p 
)
static

Variable Documentation

struct recType filter_type
static
Initial value:
= {
0,
"text",
}
static ZEBRA_RES filter_config(void *clientData, Res res, const char *args)
Definition: mod_text.c:43
static void * filter_init(Res res, RecType recType)
Definition: mod_text.c:36
static void filter_destroy(void *clientData)
Definition: mod_text.c:53
static int filter_extract(void *clientData, struct recExtractCtrl *p)
Definition: mod_text.c:106

Definition at line 239 of file mod_text.c.

RecType idzebra_filter[]
Initial value:
= {
0,
}
static struct recType filter_type
Definition: mod_text.c:239

Definition at line 256 of file mod_text.c.