YAZ  5.26.1
Data Structures | Functions
gfs-example.c File Reference

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


static int my_search (void *handle, bend_search_rr *rr)
static int my_fetch (void *handle, bend_fetch_rr *r)
static bend_initresultmy_init (bend_initrequest *q)
static void my_close (void *handle)
int main (int argc, char **argv)

Detailed Description

Demonstration of Generic Frontend Server API.

Definition in file gfs-example.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 

Definition at line 102 of file gfs-example.c.

References my_close(), my_init(), and statserv_main().

◆ my_close()

static void my_close ( void *  handle)

Definition at line 96 of file gfs-example.c.

References xfree.

Referenced by main().

◆ my_fetch()

static int my_fetch ( void *  handle,
bend_fetch_rr r 

◆ my_init()

static bend_initresult* my_init ( bend_initrequest q)

◆ my_search()

static int my_search ( void *  handle,
bend_search_rr rr