X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyazproxy%2Fmodule.h;h=2af8b90f64008bc5e4a285d95ec8b7244d8b6339;hb=HEAD;hp=70ff1a319dfcd0897178aae90e324be66e63fa60;hpb=22afe38a1f113ef7f2a46d1fde0141cf10b27eb4;p=yazproxy-moved-to-github.git diff --git a/include/yazproxy/module.h b/include/yazproxy/module.h index 70ff1a3..2af8b90 100644 --- a/include/yazproxy/module.h +++ b/include/yazproxy/module.h @@ -1,5 +1,5 @@ /* This file is part of YAZ proxy - Copyright (C) 1998-2008 Index Data + Copyright (C) 1998-2011 Index Data YAZ proxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -21,8 +21,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA struct Yaz_ProxyModule_entry { int int_version; - char *module_name; - char *module_description; + const char *module_name; + const char *module_description; void *fl; }; @@ -36,9 +36,9 @@ struct Yaz_ProxyModule_int0 { void (*destroy)( // Destroy handler void *handle // module-specific handle as returned by init ); - + int (*authenticate)( // Authenticate handler. Returns YAZPROXY_RET_.. - void *handle, // module-specific handle as returned by init + void *handle, // module-specific handle as returned by init const char *name, // target name (or NULL if default target) void *element_ptr, // xmlnodePtr thing to XML config this const char *user, // User ID (or NULL if no suppliied User ID) @@ -72,6 +72,7 @@ class Yaz_ProxyModules { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab