YAZ  5.23.1
Data Structures | Functions
zoom-opt.c File Reference

Implements ZOOM options handling. More...

#include <assert.h>
#include "zoom-p.h"
#include <yaz/xmalloc.h>

Go to the source code of this file.

Data Structures

struct  ZOOM_options_entry
 
struct  ZOOM_options_p
 

Functions

static void set_value (struct ZOOM_options_entry **e, const char *value, int len)
 
static void append_entry (struct ZOOM_options_entry **e, const char *name, const char *value, int len)
 
 ZOOM_options_dup (ZOOM_options src)
 
 ZOOM_options_create_with_parent (ZOOM_options parent)
 
 ZOOM_options_create (void)
 
 ZOOM_options_create_with_parent2 (ZOOM_options parent1, ZOOM_options parent2)
 
void ZOOM_options_addref (ZOOM_options opt)
 
 ZOOM_options_set_callback (ZOOM_options opt, ZOOM_options_callback callback_func, void *callback_handle)
 
 ZOOM_options_destroy (ZOOM_options opt)
 
 ZOOM_options_setl (ZOOM_options opt, const char *name, const char *value, int len)
 
 ZOOM_options_set (ZOOM_options opt, const char *name, const char *value)
 
 ZOOM_options_getl (ZOOM_options opt, const char *name, int *lenp)
 
 ZOOM_options_get (ZOOM_options opt, const char *name)
 
 ZOOM_options_get_bool (ZOOM_options opt, const char *name, int defa)
 
 ZOOM_options_get_int (ZOOM_options opt, const char *name, int defa)
 
 ZOOM_options_set_int (ZOOM_options opt, const char *name, int value)
 

Detailed Description

Implements ZOOM options handling.

Definition in file zoom-opt.c.

Function Documentation

static void append_entry ( struct ZOOM_options_entry **  e,
const char *  name,
const char *  value,
int  len 
)
static

Definition at line 48 of file zoom-opt.c.

References set_value(), xmalloc, xstrdup, and ZOOM_API.

Referenced by ZOOM_options_dup(), and ZOOM_options_setl().

static void set_value ( struct ZOOM_options_entry **  e,
const char *  value,
int  len 
)
static

Definition at line 34 of file zoom-opt.c.

References ZOOM_options_entry::len, and xmalloc.

Referenced by append_entry(), and ZOOM_options_setl().

void ZOOM_options_addref ( ZOOM_options  opt)

Definition at line 113 of file zoom-opt.c.

References ZOOM_API.

ZOOM_options_create ( void  )

Definition at line 87 of file zoom-opt.c.

References ZOOM_API, and ZOOM_options_create_with_parent().

Referenced by ZOOM_options_dup().

ZOOM_options_create_with_parent ( ZOOM_options  parent)
ZOOM_options_create_with_parent2 ( ZOOM_options  parent1,
ZOOM_options  parent2 
)

Definition at line 94 of file zoom-opt.c.

References opt, and xmalloc.

Referenced by ZOOM_connection_package(), and ZOOM_options_create_with_parent().

ZOOM_options_destroy ( ZOOM_options  opt)
ZOOM_options_dup ( ZOOM_options  src)
ZOOM_options_get ( ZOOM_options  opt,
const char *  name 
)
ZOOM_options_get_bool ( ZOOM_options  opt,
const char *  name,
int  defa 
)
ZOOM_options_get_int ( ZOOM_options  opt,
const char *  name,
int  defa 
)
ZOOM_options_getl ( ZOOM_options  opt,
const char *  name,
int *  lenp 
)
ZOOM_options_set ( ZOOM_options  opt,
const char *  name,
const char *  value 
)
ZOOM_options_set_callback ( ZOOM_options  opt,
ZOOM_options_callback  callback_func,
void *  callback_handle 
)

Definition at line 119 of file zoom-opt.c.

References opt, and ZOOM_API.

ZOOM_options_set_int ( ZOOM_options  opt,
const char *  name,
int  value 
)
ZOOM_options_setl ( ZOOM_options  opt,
const char *  name,
const char *  value,
int  len 
)