+typedef struct bend_scanrequest
+{
+ int num_bases; /* number of elements in databaselist */
+ char **basenames; /* databases to search */
+ Z_AttributesPlusTerm *term;
+ int term_position; /* desired index of term in result list */
+ int num_entries; /* number of entries requested */
+} bend_scanrequest;
+
+typedef struct bend_scanresult
+{
+ int num_entries;
+ struct scan_entry
+ {
+ char *term;
+ int occurrences;
+ } *entries;
+ int term_position;
+ enum
+ {
+ BEND_SCAN_SUCCESS, /* ok */
+ BEND_SCAN_PARTIAL /* not all entries could be found */
+ } status;
+ int errcode;
+ char *errstring;
+} bend_scanresult;
+