X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-opt.c;h=c8d70e5c7a7f75e19197a9f2d927882e21d01f7b;hp=c199e89cc8d12d36d44f9f9bde0a4e2641b0e92f;hb=8a980f7051e22ca1e4fac0395ed7f8647cd9eda3;hpb=0e664fbee06e451911bf53d2df4e541cbcecd495 diff --git a/src/zoom-opt.c b/src/zoom-opt.c index c199e89..c8d70e5 100644 --- a/src/zoom-opt.c +++ b/src/zoom-opt.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. - * - * $Id: zoom-opt.c,v 1.8 2007-05-05 11:53:26 adam Exp $ */ /** * \file zoom-opt.c @@ -171,7 +169,11 @@ ZOOM_API(const char *) if (!opt) return 0; if (opt->callback_func) + { v = (*opt->callback_func)(opt->callback_handle, name); + if (v) + *lenp = strlen(v); + } if (!v) { struct ZOOM_options_entry *e; @@ -230,6 +232,7 @@ ZOOM_options_set_int(ZOOM_options opt, const char *name, int value) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab