IDZEBRA  2.1.2
Data Structures | Functions | Variables
rsisamb.c File Reference
#include <stdio.h>
#include <assert.h>
#include <idzebra/util.h>
#include <rset.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  rfd_private
 
struct  rset_private
 

Functions

static RSFD r_open (RSET ct, int flag)
 
static void r_close (RSFD rfd)
 
static void r_delete (RSET ct)
 
static int r_forward (RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
 
static void r_pos (RSFD rfd, double *current, double *total)
 
static int r_read (RSFD rfd, void *buf, TERMID *term)
 
static int r_read_filter (RSFD rfd, void *buf, TERMID *term)
 
RSET rsisamb_create (NMEM nmem, struct rset_key_control *kcontrol, int scope, ISAMB is, ISAM_P pos, TERMID term)
 

Variables

static const struct rset_control control
 
static const struct rset_control control_filter
 
static int log_level = 0
 
static int log_level_initialized = 0
 

Function Documentation

static void r_close ( RSFD  rfd)
static

Definition at line 127 of file rsisamb.c.

References isamb_pp_close(), log_level, rsfd::priv, and rfd_private::pt.

static void r_delete ( RSET  ct)
static

Definition at line 98 of file rsisamb.c.

References log_level.

static int r_forward ( RSFD  rfd,
void *  buf,
TERMID term,
const void *  untilbuf 
)
static

Definition at line 135 of file rsisamb.c.

References isamb_pp_forward(), log_level, rsfd::priv, rfd_private::pt, rsfd::rset, and rset::term.

RSFD r_open ( RSET  ct,
int  flag 
)
static
static void r_pos ( RSFD  rfd,
double *  current,
double *  total 
)
static

Definition at line 146 of file rsisamb.c.

References isamb_pp_pos(), log_level, rsfd::priv, and rfd_private::pt.

static int r_read ( RSFD  rfd,
void *  buf,
TERMID term 
)
static

Definition at line 155 of file rsisamb.c.

References isamb_pp_read(), log_level, rsfd::priv, rfd_private::pt, rsfd::rset, and rset::term.

static int r_read_filter ( RSFD  rfd,
void *  buf,
TERMID term 
)
static
RSET rsisamb_create ( NMEM  nmem,
struct rset_key_control kcontrol,
int  scope,
ISAMB  is,
ISAM_P  pos,
TERMID  term 
)

Variable Documentation

const struct rset_control control
static
Initial value:
=
{
"isamb",
}
static void r_close(RSFD rfd)
Definition: rsisamb.c:127
static int r_read(RSFD rfd, void *buf, TERMID *term)
Definition: rsisamb.c:155
int rset_no_write(RSFD rfd, const void *buf)
Definition: rset.c:431
static void r_pos(RSFD rfd, double *current, double *total)
Definition: rsisamb.c:146
static void r_delete(RSET ct)
Definition: rsisamb.c:98
void rset_get_one_term(RSET ct, TERMID *terms, int maxterms, int *curterm)
is a getterms function for those that don&#39;t have any
Definition: rset.c:291
static RSFD r_open(RSET ct, int flag)
Definition: rsisamb.c:103
static int r_forward(RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
Definition: rsisamb.c:135

Definition at line 37 of file rsisamb.c.

const struct rset_control control_filter
static
Initial value:
=
{
"isamb",
}
static void r_close(RSFD rfd)
Definition: rsisamb.c:127
int rset_no_write(RSFD rfd, const void *buf)
Definition: rset.c:431
static int r_read_filter(RSFD rfd, void *buf, TERMID *term)
Definition: rsisamb.c:166
static void r_pos(RSFD rfd, double *current, double *total)
Definition: rsisamb.c:146
static void r_delete(RSET ct)
Definition: rsisamb.c:98
void rset_get_one_term(RSET ct, TERMID *terms, int maxterms, int *curterm)
is a getterms function for those that don&#39;t have any
Definition: rset.c:291
static RSFD r_open(RSET ct, int flag)
Definition: rsisamb.c:103
static int r_forward(RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
Definition: rsisamb.c:135

Definition at line 50 of file rsisamb.c.

int log_level = 0
static

Definition at line 73 of file rsisamb.c.

Referenced by r_close(), r_delete(), r_forward(), r_open(), r_pos(), r_read(), r_read_filter(), and rsisamb_create().

int log_level_initialized = 0
static

Definition at line 74 of file rsisamb.c.

Referenced by rsisamb_create().