-/* $Id: client.c,v 1.7 2007-06-06 11:49:48 marc Exp $
+/* $Id: client.c,v 1.8 2007-06-06 11:56:35 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
for (ndb = 0; sdb->database->databases[ndb]; ndb++)
databaselist[ndb] = sdb->database->databases[ndb];
- if (!(piggyback = session_setting_oneval(sdb, PZ_PIGGYBACK)) || *piggyback == '1')
+ if (!(piggyback = session_setting_oneval(sdb, PZ_PIGGYBACK))
+ || *piggyback == '1')
{
if ((recsyn = session_setting_oneval(sdb, PZ_REQUESTSYNTAX)))
{
-/* $Id: config.c,v 1.35 2007-06-06 11:49:48 marc Exp $
+/* $Id: config.c,v 1.36 2007-06-06 11:56:35 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
02111-1307, USA.
*/
-/* $Id: config.c,v 1.35 2007-06-06 11:49:48 marc Exp $ */
+/* $Id: config.c,v 1.36 2007-06-06 11:56:35 marc Exp $ */
#include <string.h>
xmlFree(host);
xmlFree(myurl);
}
-/* else if (!strcmp((const char *) n->name, "zproxy")) */
-/* { */
-/* xmlChar *port = 0; */
-/* xmlChar *host = 0; */
-
-/* port = xmlGetProp(n, (xmlChar *) "port"); */
-/* host = xmlGetProp(n, (xmlChar *) "host"); */
-
-/* if (port) */
-/* server->zproxy_port = atoi((const char *) port); */
-/* if (host) */
-/* server->zproxy_host = nmem_strdup(nmem, (const char *) host); */
-
-/* xmlFree(port); */
-/* xmlFree(host); */
-/* } */
else if (!strcmp((const char *) n->name, "settings"))
{
if (server->settings)
-/* $Id: logic.c,v 1.36 2007-06-06 11:49:48 marc Exp $
+/* $Id: logic.c,v 1.37 2007-06-06 11:56:35 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
{
"",
"",
- /* "", */
"",
0,
0, /* dump_records */
http_set_proxyaddr(hp, ser->myurl ? ser->myurl : "");
}
-/* void start_zproxy(void) */
-/* { */
-/* struct conf_server *ser = global_parameters.server; */
-
-/* if (*global_parameters.zproxy_override){ */
-/* yaz_log(YLOG_LOG, "Z39.50 proxy %s", */
-/* global_parameters.zproxy_override); */
-/* return; */
-/* } */
-
-/* else if (ser->zproxy_host || ser->zproxy_port) */
-/* { */
-/* char hp[128] = ""; */
-
-/* strcpy(hp, ser->zproxy_host ? ser->zproxy_host : ""); */
-/* if (ser->zproxy_port) */
-/* { */
-/* if (*hp) */
-/* strcat(hp, ":"); */
-/* else */
-/* strcat(hp, "@:"); */
-
-/* sprintf(hp + strlen(hp), "%d", ser->zproxy_port); */
-/* } */
-/* strcpy(global_parameters.zproxy_override, hp); */
-/* yaz_log(YLOG_LOG, "Z39.50 proxy %s", */
-/* global_parameters.zproxy_override); */
-
-/* } */
-/* else */
-/* return; */
-/* } */
// Master list of connections we're handling events to
static IOCHAN channel_list = 0;
-/* $Id: parameters.h,v 1.3 2007-06-06 11:49:48 marc Exp $
+/* $Id: parameters.h,v 1.4 2007-06-06 11:56:35 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
struct parameters {
char proxy_override[128];
char listener_override[128];
- //char zproxy_override[128];
char settings_path_override[128];
struct conf_server *server;
int dump_records;