X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fcomstack.h;h=9c74e714c1d40b4940b2dd48cf419e814803c836;hp=e27cfa6b0576649527cf61bdf8dadbf2beaaab09;hb=dbc40ad16aa82379d2884e106d79c7d83312667a;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/include/yaz/comstack.h b/include/yaz/comstack.h index e27cfa6..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-2010 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,15 +113,19 @@ 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, + int blocking, void **vp, + const char *proxy_host); YAZ_EXPORT void cs_get_host_args(const char *type_and_host, const char **args); YAZ_EXPORT int cs_complete_auto_head(const char *buf, int len); YAZ_EXPORT int cs_complete_auto(const char *buf, int len); @@ -137,7 +141,7 @@ YAZ_EXPORT void cs_print_session_info(COMSTACK cs); /* * error management. */ - + #define CSNONE 0 #define CSYSERR 1 #define CSOUTSTATE 2