X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-my-server.cpp;h=d79032b8cee8a39e24faec9920213d2194f6c378;hp=70e9fb4084f130cbac2a85c6de93c78b9c35d51b;hb=b217549fd1effa4467ac57a9e7510d75d7b8c446;hpb=d508100e993ab5c9a415bd1826b939875dcfe91c diff --git a/src/yaz-my-server.cpp b/src/yaz-my-server.cpp index 70e9fb4..d79032b 100644 --- a/src/yaz-my-server.cpp +++ b/src/yaz-my-server.cpp @@ -1,8 +1,6 @@ -/* - * Copyright (c) 1998-2001, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) 1998-2009 Index Data and Mike Taylor * See the file LICENSE for details. - * - * $Id: yaz-my-server.cpp,v 1.21 2007-04-12 15:00:33 adam Exp $ */ #include @@ -44,7 +42,7 @@ public: Z_PresentResponse *presentResponse); void sr_record (const char *resultSetName, int position, - int *format, + Odr_oid *format, Z_RecordComposition *comp, Z_NamePlusRecord *namePlusRecord, Z_Records *records); @@ -124,7 +122,7 @@ void MyRetrieval::sr_present (Z_PresentRequest *presentRequest, void MyRetrieval::sr_record (const char *resultSetName, int position, - int *format, + Odr_oid *format, Z_RecordComposition *comp, Z_NamePlusRecord *namePlusRecord, Z_Records *records) @@ -133,7 +131,7 @@ void MyRetrieval::sr_record (const char *resultSetName, const char *rec = get_record(position); if (rec) create_databaseRecord(odr_encode(), namePlusRecord, 0, - OID_STR_USMARC, rec, strlen(rec)); + yaz_oid_recsyn_usmarc, rec, strlen(rec)); else create_surrogateDiagnostics(odr_encode(), namePlusRecord, 0, YAZ_BIB1_PRESENT_REQUEST_OUT_OF_RANGE, 0); @@ -247,6 +245,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab