X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-opt.c;h=0cda581dbe8bd0981b4fef2a289989a3ca35cf21;hp=c8d70e5c7a7f75e19197a9f2d927882e21d01f7b;hb=5a3e6fa63181ab4afa8bce5f01c6de016a333334;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/src/zoom-opt.c b/src/zoom-opt.c index c8d70e5..0cda581 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-2009 Index Data + * Copyright (C) 1995-2010 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) {