… | |
… | |
523 | NULL, |
523 | NULL, |
524 | csv_create_item, |
524 | csv_create_item, |
525 | csv_get_attr, |
525 | csv_get_attr, |
526 | }; |
526 | }; |
527 | |
527 | |
528 | static struct map_priv * |
528 | struct map_priv * |
529 | map_new_csv(struct map_methods *meth, struct attr **attrs, struct callback_list *cbl) |
529 | map_new_csv(struct map_methods *meth, struct attr **attrs, struct callback_list *cbl) |
530 | { |
530 | { |
531 | struct map_priv *m = NULL; |
531 | struct map_priv *m = NULL; |
532 | struct attr *item_type; |
532 | struct attr *item_type; |
533 | struct attr *attr_types; |
533 | struct attr *attr_types; |
… | |
… | |
691 | if (flags) |
691 | if (flags) |
692 | m->flags=flags->u.num; |
692 | m->flags=flags->u.num; |
693 | return m; |
693 | return m; |
694 | } |
694 | } |
695 | |
695 | |
|
|
696 | #ifdef PLUGSSS |
696 | void |
697 | void |
697 | plugin_init(void) |
698 | plugin_init(void) |
698 | { |
699 | { |
699 | dbg(1,"csv: plugin_init\n"); |
700 | dbg(1,"csv: plugin_init\n"); |
700 | plugin_register_map_type("csv", map_new_csv); |
701 | plugin_register_map_type("csv", map_new_csv); |
701 | } |
702 | } |
|
|
703 | #endif |
702 | |
704 | |