-/* $Id: csvread.c,v 1.2 2005-12-05 13:58:52 marc Exp $
+/* $Id: csvread.c,v 1.5 2006-05-10 08:13:28 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
};
*/
-static struct csv_t {
+struct csv_t {
NMEM nmem;
int buf_size;
char *buf;
};
-static void grs_config_csv(void *clientData, Res res, const char *args)
+static ZEBRA_RES grs_config_csv(void *clientData, Res res, const char *args)
{
int i;
struct csv_t *csvp = (struct csv_t*) clientData;
/* csvp->field_names = 0; */ /*nmem_strdup(csvp->nmem, "a|b|c|d|e");*/
csvp->field_name
- = nmem_malloc(csvp->nmem,
- sizeof(*(csvp->field_name)) * csvp->max_nr_fields);
+ = nmem_malloc(csvp->nmem,
+ sizeof(*(csvp->field_name)) * csvp->max_nr_fields);
for (i = 0; i < csvp->max_nr_fields; i++){
csvp->field_name[i] = 0;
}
*/
yaz_log (YLOG_LOG, "Ended CSV filter grs_config_csv");
+ return ZEBRA_OK;
}
static void *grs_init_csv(Res res, RecType recType)
{
- yaz_log (YLOG_LOG, "Called CSV filter grs_init_csv");
NMEM m = nmem_create();
struct csv_t *csvp = (struct csv_t *) nmem_malloc(m, sizeof(*csvp));
+ yaz_log (YLOG_LOG, "Called CSV filter grs_init_csv");
csvp->nmem = m;
yaz_log (YLOG_LOG, "Ended CSV filter grs_init_csv");
return csvp;
&grs_type_csv,
0,
};
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+