X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=client%2Fclient.c;h=8aeede66bb5a368355960f59ddc932b003aa9c59;hb=772d9a39dd0e3e139ab975d7d45d1262f5471164;hp=89e803980096d286e8fa28b9b81e42f7ac7ba616;hpb=cfef2a68b0e7da6c2a3b47e44df9965d63156584;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 89e8039..8aeede6 100644 --- a/client/client.c +++ b/client/client.c @@ -3,7 +3,16 @@ * See the file LICENSE for details. * * $Log: client.c,v $ - * Revision 1.116 2001-03-21 12:43:36 adam + * Revision 1.119 2001-04-05 13:08:48 adam + * New configure options: --enable-module. + * + * Revision 1.118 2001/03/27 14:48:06 adam + * Fixed scan for bad CCL. + * + * Revision 1.117 2001/03/25 21:55:12 adam + * Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate. + * + * Revision 1.116 2001/03/21 12:43:36 adam * Implemented cs_create_host. Better error reporting for SSL comstack. * * Revision 1.115 2001/03/13 18:10:58 adam @@ -395,7 +404,7 @@ #include -#ifdef ASN_COMPILED +#if YAZ_MODULE_ill #include #endif @@ -631,7 +640,6 @@ int cmd_open(char *arg) { void *add; char type_and_host[101], base[101]; - char *host = 0; CS_TYPE t; if (conn) @@ -1309,7 +1317,7 @@ void process_ESResponse(Z_ExtendedServicesResponse *res) } } -#ifdef ASN_COMPILED +#if YAZ_MODULE_ill const char *get_ill_element (void *clientData, const char *element) { @@ -1373,14 +1381,9 @@ static Z_External *create_external_itemRequest() } return r; } -#else -static Z_External *create_external_itemRequest() -{ - return 0; -} #endif -#ifdef ASN_COMPILED +#ifdef YAZ_MODULE_ill static Z_External *create_external_ILL_APDU(int which) { struct ill_get_ctl ctl; @@ -1436,11 +1439,6 @@ static Z_External *create_external_ILL_APDU(int which) } return r; } -#else -static Z_External *create_external_ILLRequest() -{ - return 0; -} #endif @@ -1491,7 +1489,7 @@ static Z_External *create_ItemOrderExternal(const char *type, int itemno) (int *) odr_malloc(out, sizeof(int)); *r->u.itemOrder->u.esRequest->notToKeep->resultSetItem->item = itemno; -#ifdef ASN_COMPILED +#if YAZ_MODULE_ill if (!strcmp (type, "item") || !strcmp(type, "2")) { printf ("using item-request\n"); @@ -1879,7 +1877,7 @@ int send_scanrequest(const char *query, int pp, int num, const char *term) if (error) { printf("CCL ERROR: %s\n", ccl_err_msg(error)); - return 0; + return -1; } use_rpn = 0; bib1.proto = PROTO_Z3950; @@ -1889,7 +1887,7 @@ int send_scanrequest(const char *query, int pp, int num, const char *term) if (!(req->termListAndStartPoint = ccl_scan_query (out, rpn))) { printf("Couldn't convert CCL to Scan term\n"); - return 0; + return -1; } ccl_rpn_delete (rpn); }