IDZEBRA  2.1.2
Data Structures | Macros | Functions
limit.c File Reference
#include <stdio.h>
#include <assert.h>
#include <yaz/xmalloc.h>
#include <yaz/diagbib1.h>
#include "index.h"

Go to the source code of this file.

Data Structures

struct  zebra_limit
 

Macros

#define ZEBRA_LIMIT_DEBUG   0
 

Functions

void zebra_limit_destroy (struct zebra_limit *zl)
 
struct zebra_limitzebra_limit_create (int complement_flag, zint *ids)
 
static int zebra_limit_filter_cb (const void *buf, void *data)
 
static void zebra_limit_destroy_cb (void *data)
 
void zebra_limit_for_rset (struct zebra_limit *zl, int(**filter_func)(const void *buf, void *data), void(**filter_destroy)(void *data), void **filter_data)
 

Macro Definition Documentation

#define ZEBRA_LIMIT_DEBUG   0

Definition at line 30 of file limit.c.

Function Documentation

struct zebra_limit* zebra_limit_create ( int  complement_flag,
zint ids 
)

Definition at line 46 of file limit.c.

References zebra_limit::complement_flag, and zebra_limit::ids.

Referenced by zebra_limit_for_rset(), zebra_open(), and zebra_set_limit().

void zebra_limit_destroy ( struct zebra_limit zl)

Definition at line 37 of file limit.c.

References zebra_limit::ids.

Referenced by zebra_close(), zebra_limit_destroy_cb(), and zebra_set_limit().

static void zebra_limit_destroy_cb ( void *  data)
static

Definition at line 91 of file limit.c.

References zebra_limit_destroy().

Referenced by zebra_limit_for_rset().

static int zebra_limit_filter_cb ( const void *  buf,
void *  data 
)
static

Definition at line 62 of file limit.c.

References zebra_limit::complement_flag, zebra_limit::ids, it_key::len, it_key::mem, and ZINT_FORMAT.

Referenced by zebra_limit_for_rset().

void zebra_limit_for_rset ( struct zebra_limit zl,
int(**)(const void *buf, void *data)  filter_func,
void(**)(void *data)  filter_destroy,
void **  filter_data 
)