… | |
… | |
439 | map_rect_destroy_textfile, |
439 | map_rect_destroy_textfile, |
440 | map_rect_get_item_textfile, |
440 | map_rect_get_item_textfile, |
441 | map_rect_get_item_byid_textfile, |
441 | map_rect_get_item_byid_textfile, |
442 | }; |
442 | }; |
443 | |
443 | |
444 | static struct map_priv * |
444 | struct map_priv * |
445 | map_new_textfile(struct map_methods *meth, struct attr **attrs, struct callback_list *cbl) |
445 | map_new_textfile(struct map_methods *meth, struct attr **attrs, struct callback_list *cbl) |
446 | { |
446 | { |
447 | struct map_priv *m; |
447 | struct map_priv *m; |
448 | struct attr *data=attr_search(attrs, NULL, attr_data); |
448 | struct attr *data=attr_search(attrs, NULL, attr_data); |
449 | struct attr *charset=attr_search(attrs, NULL, attr_charset); |
449 | struct attr *charset=attr_search(attrs, NULL, attr_charset); |
… | |
… | |
491 | //g_free(wdata); |
491 | //g_free(wdata); |
492 | |
492 | |
493 | return m; |
493 | return m; |
494 | } |
494 | } |
495 | |
495 | |
|
|
496 | #ifdef PLUGSSS |
496 | void |
497 | void |
497 | plugin_init(void) |
498 | plugin_init(void) |
498 | { |
499 | { |
499 | //dbg(1,"textfile: plugin_init\n"); |
500 | //dbg(1,"textfile: plugin_init\n"); |
500 | plugin_register_map_type("textfile", map_new_textfile); |
501 | plugin_register_map_type("textfile", map_new_textfile); |
501 | } |
502 | } |
|
|
503 | #endif |
502 | |
504 | |