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

Go to the source code of this file.

Data Structures

struct  filter_info
 
struct  fi_info
 

Functions

static void * filter_init (Res res, RecType recType)
 
static void * filter_init2 (Res res, RecType recType)
 
static ZEBRA_RES filter_config (void *clientData, Res res, const char *args)
 
static void filter_destroy (void *clientData)
 
static struct fi_infofi_open (struct recExtractCtrl *p)
 
static int fi_getchar (struct fi_info *fi, char *dst)
 
static int fi_gets (struct fi_info *fi, char *dst, int max)
 
static void fi_close (struct fi_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
 
static struct recType filter_type2
 
RecType idzebra_filter []
 

Function Documentation

static void fi_close ( struct fi_info fi)
static

Definition at line 110 of file mod_safari.c.

References fi_info::buf.

Referenced by filter_extract().

static int fi_getchar ( struct fi_info fi,
char *  dst 
)
static
static int fi_gets ( struct fi_info fi,
char *  dst,
int  max 
)
static

Definition at line 93 of file mod_safari.c.

References fi_getchar().

Referenced by filter_extract().

static struct fi_info* fi_open ( struct recExtractCtrl p)
static

Definition at line 67 of file mod_safari.c.

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

Referenced by filter_extract().

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

Definition at line 49 of file mod_safari.c.

References ZEBRA_OK.

static void filter_destroy ( void *  clientData)
static

Definition at line 54 of file mod_safari.c.

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

Definition at line 35 of file mod_safari.c.

References filter_info::segments.

static void* filter_init2 ( Res  res,
RecType  recType 
)
static

Definition at line 42 of file mod_safari.c.

References filter_info::segments.

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

Variable Documentation

struct recType filter_type
static
Initial value:
= {
0,
"safari",
}
static ZEBRA_RES filter_config(void *clientData, Res res, const char *args)
Definition: mod_safari.c:49
static void * filter_init(Res res, RecType recType)
Definition: mod_safari.c:35
static void filter_destroy(void *clientData)
Definition: mod_safari.c:54
static int filter_extract(void *clientData, struct recExtractCtrl *p)
Definition: mod_safari.c:116

Definition at line 284 of file mod_safari.c.

struct recType filter_type2
static
Initial value:
= {
0,
"safari2",
}
static void * filter_init2(Res res, RecType recType)
Definition: mod_safari.c:42
static ZEBRA_RES filter_config(void *clientData, Res res, const char *args)
Definition: mod_safari.c:49
static void filter_destroy(void *clientData)
Definition: mod_safari.c:54
static int filter_extract(void *clientData, struct recExtractCtrl *p)
Definition: mod_safari.c:116

Definition at line 294 of file mod_safari.c.

RecType idzebra_filter[]
Initial value:
= {
0,
}
static struct recType filter_type
Definition: mod_safari.c:284
static struct recType filter_type2
Definition: mod_safari.c:294

Definition at line 311 of file mod_safari.c.