X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fcomstack.h;h=9c74e714c1d40b4940b2dd48cf419e814803c836;hp=6aef53ea8182fde560fdafa8acac59a43d45e856;hb=4b92c6833026a51cc391840d1157cd5fefede1df;hpb=05ee6a02d78ff422ddb63bb4ebbc2f5988d9a121 diff --git a/include/yaz/comstack.h b/include/yaz/comstack.h index 6aef53e..9c74e71 100644 --- a/include/yaz/comstack.h +++ b/include/yaz/comstack.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data. + * Copyright (C) 1995-2013 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: @@ -25,7 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/** +/** * \file comstack.h * \brief Header for COMSTACK */ @@ -113,14 +113,14 @@ struct comstack #define cs_want_read(handle) ((handle)->io_pending & CS_WANT_READ) #define cs_want_write(handle) ((handle)->io_pending & CS_WANT_WRITE) #define cs_set_blocking(handle,blocking) ((handle)->f_set_blocking(handle, blocking)) - + #define CS_WANT_READ 1 #define CS_WANT_WRITE 2 YAZ_EXPORT int cs_look (COMSTACK); YAZ_EXPORT const char *cs_strerror(COMSTACK h); YAZ_EXPORT const char *cs_errmsg(int n); -YAZ_EXPORT COMSTACK cs_create_host(const char *type_and_host, +YAZ_EXPORT COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp); YAZ_EXPORT COMSTACK cs_create_host_proxy(const char *vhost, @@ -141,7 +141,7 @@ YAZ_EXPORT void cs_print_session_info(COMSTACK cs); /* * error management. */ - + #define CSNONE 0 #define CSYSERR 1 #define CSOUTSTATE 2