projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added log_mask_str_x routine.
[yaz-moved-to-github.git]
/
include
/
backend.h
diff --git
a/include/backend.h
b/include/backend.h
index
392f68b
..
92ffb50
100644
(file)
--- a/
include/backend.h
+++ b/
include/backend.h
@@
-28,6
+28,7
@@
#ifndef BACKEND_H
#define BACKEND_H
#ifndef BACKEND_H
#define BACKEND_H
+#include <yconfig.h>
#include <proto.h>
#include <statserv.h>
#include <proto.h>
#include <statserv.h>
@@
-44,7
+45,7
@@
typedef struct bend_initresult
void *handle; /* private handle to the backend module */
} bend_initresult;
void *handle; /* private handle to the backend module */
} bend_initresult;
-bend_initresult *bend_init(bend_initrequest *r);
+bend_initresult MDF *bend_init(bend_initrequest *r);
typedef struct bend_searchrequest
{
typedef struct bend_searchrequest
{
@@
-69,14
+70,18
@@
typedef struct bend_fetchrequest
{
char *setname; /* set name */
int number; /* record number */
{
char *setname; /* set name */
int number; /* record number */
+ oid_value format; /* One of the CLASS_RECSYN members */
+ Z_RecordComposition *comp; /* Formatting instructions */
+ ODR stream; /* encoding stream - memory source if required */
} bend_fetchrequest;
typedef struct bend_fetchresult
{
char *basename; /* name of database that provided record */
} bend_fetchrequest;
typedef struct bend_fetchresult
{
char *basename; /* name of database that provided record */
- int len; /* length of record */
+ int len; /* length of record or -1 if structured */
char *record; /* record */
int last_in_set; /* is it? */
char *record; /* record */
int last_in_set; /* is it? */
+ oid_value format; /* format */
int errcode; /* 0==success */
char *errstring; /* system error string or NULL */
} bend_fetchresult;
int errcode; /* 0==success */
char *errstring; /* system error string or NULL */
} bend_fetchresult;
@@
-88,6
+93,7
@@
typedef struct bend_scanrequest
{
int num_bases; /* number of elements in databaselist */
char **basenames; /* databases to search */
{
int num_bases; /* number of elements in databaselist */
char **basenames; /* databases to search */
+ oid_value attributeset;
Z_AttributesPlusTerm *term;
int term_position; /* desired index of term in result list */
int num_entries; /* number of entries requested */
Z_AttributesPlusTerm *term;
int term_position; /* desired index of term in result list */
int num_entries; /* number of entries requested */