X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-opt.c;h=a1ba28bbbd234483c8048d066485fc87b3414c16;hp=0f5d9da5e8567a7df804e4c2347162b8be31650e;hb=15aeea31b59ead99109571dcf67a5f3b78fd5585;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/zoom-opt.c b/src/zoom-opt.c index 0f5d9da..a1ba28b 100644 --- a/src/zoom-opt.c +++ b/src/zoom-opt.c @@ -1,16 +1,36 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ /** * \file zoom-opt.c * \brief Implements ZOOM options handling */ +#if HAVE_CONFIG_H +#include +#endif + #include #include "zoom-p.h" #include +struct ZOOM_options_entry { + char *name; + char *value; + int len; /* of `value', which may contain NULs */ + struct ZOOM_options_entry *next; +}; + +struct ZOOM_options_p { + int refcount; + void *callback_handle; + ZOOM_options_callback callback_func; + struct ZOOM_options_entry *entries; + ZOOM_options parent1; + ZOOM_options parent2; +}; + static void set_value(struct ZOOM_options_entry **e, const char *value, int len) {