X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Finitopt.c;h=f11bd501d9fe60529456d51eb716efa617c20680;hb=60a702f390f7e2addfdab79f2328db3ba2897c8b;hp=a0eef33e7c29e6a8b1495de6249b6b33368addc0;hpb=6d9e8305bb173398dc9b886070a72b40618304ca;p=yaz-moved-to-github.git diff --git a/src/initopt.c b/src/initopt.c index a0eef33..f11bd50 100644 --- a/src/initopt.c +++ b/src/initopt.c @@ -1,8 +1,13 @@ /* - * Copyright (c) 1995-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: initopt.c,v 1.1 2004-01-12 12:11:57 adam Exp $ + * $Id: initopt.c,v 1.4 2005-01-15 19:47:13 adam Exp $ + */ + +/** + * \file initopt.c + * \brief Implements Z39.50 Init Options Utility */ #if HAVE_CONFIG_H @@ -78,10 +83,12 @@ int yaz_init_opt_encode(Z_Options *opt, const char *opt_str, int *error_pos) return 0; } -void yaz_init_opt_decode(Z_Options *opt, void (*pr)(const char *name)) +void yaz_init_opt_decode(Z_Options *opt, void (*pr)(const char *name, + void *clientData), + void *clientData) { int i; for (i = 0; opt_array[i].name; i++) if (ODR_MASK_GET(opt, opt_array[i].opt)) - (*pr)(opt_array[i].name); + (*pr)(opt_array[i].name, clientData); }