X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=include%2Fyazpp%2Fz-server.h;h=7ce1776d142d5a870be02e96936e62ce01c76ab6;hp=7b1f04782af14ab35d7bd431b163347a780f7f2a;hb=HEAD;hpb=d588f1d530f53c4d38a4a5f954545b06b2751968 diff --git a/include/yazpp/z-server.h b/include/yazpp/z-server.h index 7b1f047..7ce1776 100644 --- a/include/yazpp/z-server.h +++ b/include/yazpp/z-server.h @@ -1,8 +1,28 @@ -/* - * Copyright (c) 2000-2007, Index Data. - * See the file LICENSE for details. - * - * $Id: z-server.h,v 1.4 2007-05-08 12:04:50 adam Exp $ +/* This file is part of the yazpp toolkit. + * Copyright (C) Index Data + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Index Data nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include @@ -19,7 +39,7 @@ class YAZ_EXPORT Z_ServerUtility { void create_surrogateDiagnostics(ODR odr, Z_NamePlusRecord *rec, const char *dbname, int error, char *const addinfo); - + Z_Records *create_nonSurrogateDiagnostics (ODR odr, int error, const char *addinfo); @@ -97,7 +117,7 @@ class YAZ_EXPORT Yaz_Facility_Retrieval : public IServer_Facility, const char *resultSetName, int start, int num, Z_RecordComposition *comp, - int *next, int *pres, + Odr_int *next, Odr_int *pres, Odr_oid *oid); void fetch_via_piggyback (Z_Server *s, @@ -143,6 +163,7 @@ class YAZ_EXPORT Yaz_USMARC { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab