YAZ  5.23.1
Functions | Variables
initopt.c File Reference

Implements Z39.50 Init Options Utility. More...

#include <yaz/proto.h>

Go to the source code of this file.

Functions

int yaz_init_opt_encode (Z_Options *opt, const char *opt_str, int *error_pos)
 Encodes Z39.50 Init OPtions based on string mnemonics. More...
 
void yaz_init_opt_decode (Z_Options *opt, void(*pr)(const char *name, void *clientData), void *clientData)
 Decodes Z39.50 Init Options - for printing. More...
 

Variables

struct {
   char *   name
 
   int   opt
 
opt_array []
 

Detailed Description

Implements Z39.50 Init Options Utility.

Definition in file initopt.c.

Function Documentation

void yaz_init_opt_decode ( Z_Options opt,
void(*)(const char *name, void *clientData)  pr,
void *  clientData 
)

Decodes Z39.50 Init Options - for printing.

Definition at line 84 of file initopt.c.

References ODR_MASK_GET, and opt_array.

Referenced by ZOOM_handle_Z3950_apdu().

int yaz_init_opt_encode ( Z_Options opt,
const char *  opt_str,
int *  error_pos 
)

Encodes Z39.50 Init OPtions based on string mnemonics.

Definition at line 45 of file initopt.c.

References name, ODR_MASK_SET, ODR_MASK_ZERO, opt_array, and yaz_matchstr().

Variable Documentation

char* name
int opt
struct { ... } opt_array[]
Initial value:
= {
{"search", Z_Options_search},
{"present", Z_Options_present},
{"delSet", Z_Options_delSet},
{"resourceReport", Z_Options_resourceReport},
{"triggerResourceCtrl", Z_Options_triggerResourceCtrl},
{"resourceCtrl", Z_Options_resourceCtrl},
{"accessCtrl", Z_Options_accessCtrl},
{"scan", Z_Options_scan},
{"sort", Z_Options_sort},
{"extendedServices", Z_Options_extendedServices},
{"level_1Segmentation", Z_Options_level_1Segmentation},
{"level_2Segmentation", Z_Options_level_2Segmentation},
{"concurrentOperations", Z_Options_concurrentOperations},
{"namedResultSets", Z_Options_namedResultSets},
{"encapsulation", Z_Options_encapsulation},
{"resultCount", Z_Options_resultCount},
{"negotiationModel", Z_Options_negotiationModel},
{"duplicationDetection", Z_Options_duplicateDetection},
{"queryType104", Z_Options_queryType104},
{"pQESCorrection", Z_Options_pQESCorrection},
{"stringSchema", Z_Options_stringSchema},
{0, 0}
}
#define Z_Options_duplicateDetection
Definition: z-core.h:446
#define Z_Options_level_2Segmentation
Definition: z-core.h:440
#define Z_Options_present
Definition: z-core.h:430
#define Z_Options_concurrentOperations
Definition: z-core.h:441
#define Z_Options_queryType104
Definition: z-core.h:447
#define Z_Options_resourceCtrl
Definition: z-core.h:434
#define Z_Options_scan
Definition: z-core.h:436
#define Z_Options_accessCtrl
Definition: z-core.h:435
#define Z_Options_namedResultSets
Definition: z-core.h:442
#define Z_Options_extendedServices
Definition: z-core.h:438
#define Z_Options_triggerResourceCtrl
Definition: z-core.h:433
#define Z_Options_negotiationModel
Definition: z-core.h:445
#define Z_Options_pQESCorrection
Definition: z-core.h:448
#define Z_Options_delSet
Definition: z-core.h:431
#define Z_Options_level_1Segmentation
Definition: z-core.h:439
#define Z_Options_resultCount
Definition: z-core.h:444
#define Z_Options_resourceReport
Definition: z-core.h:432
#define Z_Options_sort
Definition: z-core.h:437
#define Z_Options_encapsulation
Definition: z-core.h:443
#define Z_Options_stringSchema
Definition: z-core.h:449
#define Z_Options_search
Definition: z-core.h:429

Referenced by yaz_init_opt_decode(), and yaz_init_opt_encode().