IDZEBRA  2.1.2
Data Fields
rset_control Struct Reference

#include <rset.h>

Data Fields

char * desc
 
void(* f_delete )(RSET ct)
 
void(* f_getterms )(RSET ct, TERMID *terms, int maxterms, int *curterm)
 
RSFD(* f_open )(RSET ct, int wflag)
 
void(* f_close )(RSFD rfd)
 
int(* f_forward )(RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
 
void(* f_pos )(RSFD rfd, double *current, double *total)
 
int(* f_read )(RSFD rfd, void *buf, TERMID *term)
 
int(* f_write )(RSFD rfd, const void *buf)
 

Detailed Description

rset_control has function pointers to all the important functions of a rset. Each type of rset will have its own control block, pointing to the functions for that type. They all have their own create function which is not part of the control block, as it takes different args for each type.

Definition at line 89 of file rset.h.

Field Documentation

char* rset_control::desc

text description of set type (for debugging)

Definition at line 92 of file rset.h.

Referenced by r_open(), rset_close(), rset_close_int(), rset_create_base(), rset_delete(), rset_dup(), and rset_no_write().

void(* rset_control::f_close) (RSFD rfd)

Definition at line 102 of file rset.h.

Referenced by rset_close_int().

void(* rset_control::f_delete) (RSET ct)

Definition at line 94 of file rset.h.

Referenced by rset_delete().

int(* rset_control::f_forward) (RSFD rfd, void *buf, TERMID *term, const void *untilbuf)

forward behaves like a read, but it skips some items first

Definition at line 104 of file rset.h.

Referenced by rset_default_forward().

void(* rset_control::f_getterms) (RSET ct, TERMID *terms, int maxterms, int *curterm)

recursively fills the terms array with terms. call with curterm=0

Definition at line 99 of file rset.h.

RSFD(* rset_control::f_open) (RSET ct, int wflag)

Definition at line 101 of file rset.h.

void(* rset_control::f_pos) (RSFD rfd, double *current, double *total)

Definition at line 105 of file rset.h.

int(* rset_control::f_read) (RSFD rfd, void *buf, TERMID *term)

Definition at line 107 of file rset.h.

Referenced by rset_default_read().

int(* rset_control::f_write) (RSFD rfd, const void *buf)

Definition at line 108 of file rset.h.


The documentation for this struct was generated from the following file: