IDZEBRA  2.1.2
Functions
zebrasrv.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <yaz/log.h>
#include <yaz/ill.h>
#include <yaz/yaz-util.h>
#include <yaz/yaz-version.h>
#include <yaz/diagbib1.h>
#include <yaz/querytowrbuf.h>
#include <yaz/pquery.h>
#include <sys/types.h>
#include <yaz/backend.h>
#include <yaz/charneg.h>
#include <idzebra/api.h>

Go to the source code of this file.

Functions

static int bend_sort (void *handle, bend_sort_rr *rr)
 
static int bend_delete (void *handle, bend_delete_rr *rr)
 
static int bend_esrequest (void *handle, bend_esrequest_rr *rr)
 
static int bend_segment (void *handle, bend_segment_rr *rr)
 
static int bend_search (void *handle, bend_search_rr *r)
 
static int bend_fetch (void *handle, bend_fetch_rr *r)
 
static int bend_scan (void *handle, bend_scan_rr *r)
 
bend_initresult * bend_init (bend_initrequest *q)
 
static void search_terms (ZebraHandle zh, bend_search_rr *r)
 
static int break_handler (void *client_data)
 
static Z_RPNQuery * query_add_sortkeys (ODR o, Z_RPNQuery *query, const char *sortKeys)
 
void bend_close (void *handle)
 
static void es_admin_request (bend_esrequest_rr *rr, ZebraHandle zh, Z_AdminEsRequest *r)
 
static void es_admin (bend_esrequest_rr *rr, ZebraHandle zh, Z_Admin *r)
 
static void bend_start (struct statserv_options_block *sob)
 
static void bend_stop (struct statserv_options_block *sob)
 
int main (int argc, char **argv)
 

Function Documentation

void bend_close ( void *  handle)

Definition at line 473 of file zebrasrv.c.

References zebra_close().

Referenced by main().

int bend_delete ( void *  handle,
bend_delete_rr *  rr 
)
static

Definition at line 491 of file zebrasrv.c.

References zebra_deleteResultSet(), and zh.

Referenced by bend_init().

int bend_esrequest ( void *  handle,
bend_esrequest_rr *  rr 
)
static
int bend_fetch ( void *  handle,
bend_fetch_rr *  r 
)
static
bend_initresult* bend_init ( bend_initrequest *  q)
static int bend_scan ( void *  handle,
bend_scan_rr *  r 
)
static
int bend_search ( void *  handle,
bend_search_rr *  r 
)
static
int bend_segment ( void *  handle,
bend_segment_rr *  rr 
)
static

Definition at line 579 of file zebrasrv.c.

References zebra_admin_import_end(), zebra_admin_import_segment(), and zh.

Referenced by bend_init().

int bend_sort ( void *  handle,
bend_sort_rr *  rr 
)
static

Definition at line 479 of file zebrasrv.c.

References ZEBRA_OK, zebra_result(), zebra_sort(), and zh.

Referenced by bend_init().

static void bend_start ( struct statserv_options_block *  sob)
static

Definition at line 796 of file zebrasrv.c.

References fd, res_close(), res_open(), res_set(), zebra_pidfname(), zebra_start_res(), and zebra_stop().

Referenced by main().

static void bend_stop ( struct statserv_options_block *  sob)
static

Definition at line 860 of file zebrasrv.c.

References zebra_pidfname(), and zebra_stop().

Referenced by main().

static int break_handler ( void *  client_data)
static

Definition at line 268 of file zebrasrv.c.

Referenced by bend_search().

static void es_admin ( bend_esrequest_rr *  rr,
ZebraHandle  zh,
Z_Admin *  r 
)
static

Definition at line 564 of file zebrasrv.c.

References es_admin_request().

Referenced by bend_esrequest().

static void es_admin_request ( bend_esrequest_rr *  rr,
ZebraHandle  zh,
Z_AdminEsRequest *  r 
)
static
int main ( int  argc,
char **  argv 
)

Definition at line 879 of file zebrasrv.c.

References bend_close(), bend_init(), bend_start(), and bend_stop().

static Z_RPNQuery* query_add_sortkeys ( ODR  o,
Z_RPNQuery *  query,
const char *  sortKeys 
)
static

Definition at line 276 of file zebrasrv.c.

Referenced by bend_search().

static void search_terms ( ZebraHandle  zh,
bend_search_rr *  r 
)
static

Definition at line 182 of file zebrasrv.c.

References zebra_result_set_term_info(), and zebra_result_set_term_no().

Referenced by bend_search().