|
YAZ 5.35.1
|
Demonstration of Generic Frontend Server API. More...
#include <stdio.h>#include <stdlib.h>#include <yaz/log.h>#include <yaz/backend.h>#include <yaz/diagbib1.h>#include <yaz/matchstr.h>#include <yaz/snprintf.h>Go to the source code of this file.
Data Structures | |
| struct | my_handle |
Functions | |
| static int | my_search (void *handle, bend_search_rr *rr) |
| static int | my_fetch (void *handle, bend_fetch_rr *r) |
| static bend_initresult * | my_init (bend_initrequest *q) |
| static void | my_close (void *handle) |
| int | main (int argc, char **argv) |
Demonstration of Generic Frontend Server API.
Definition in file gfs-example.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 102 of file gfs-example.c.
References my_close(), my_init(), and statserv_main().
|
static |
|
static |
Definition at line 51 of file gfs-example.c.
References bend_fetch_rr::basename, bend_fetch_rr::errcode, bend_fetch_rr::errstring, bend_fetch_rr::last_in_set, bend_fetch_rr::len, bend_fetch_rr::number, odr_oiddup(), odr_strdup(), oid_oid_to_dotstring(), oid_oidcmp(), OID_STR_MAX, bend_fetch_rr::output_format, bend_fetch_rr::record, bend_fetch_rr::request_format, bend_fetch_rr::stream, YAZ_BIB1_RECORD_SYNTAX_UNSUPP, yaz_oid_recsyn_xml, and yaz_snprintf().
Referenced by my_init().
|
static |
Definition at line 78 of file gfs-example.c.
References bend_initrequest::bend_fetch, bend_initrequest::bend_search, my_handle::counter, bend_initresult::errcode, bend_initresult::errstring, bend_initresult::handle, my_fetch(), my_search(), odr_malloc(), bend_initrequest::query_charset, bend_initrequest::records_in_same_charset, bend_initrequest::stream, and xmalloc.
Referenced by main().
|
static |
Definition at line 26 of file gfs-example.c.
References bend_search_rr::basenames, my_handle::counter, bend_search_rr::errcode, bend_search_rr::errstring, bend_search_rr::hits, bend_search_rr::num_bases, YAZ_BIB1_COMBI_OF_SPECIFIED_DATABASES_UNSUPP, YAZ_BIB1_DATABASE_UNAVAILABLE, and yaz_matchstr().
Referenced by my_init().