comparison src/audacious/pluginenum.c @ 4640:cbc9965e1552

removed some dangling white spaces.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 13 Jun 2008 22:32:27 +0900
parents 8c36787807de
children 04c53c9d261b
comparison
equal deleted inserted replaced
4639:0813d0d66627 4640:cbc9965e1552
100 .vfs_buffer_new = vfs_buffer_new, 100 .vfs_buffer_new = vfs_buffer_new,
101 .vfs_buffer_new_from_string = vfs_buffer_new_from_string, 101 .vfs_buffer_new_from_string = vfs_buffer_new_from_string,
102 102
103 .vfs_buffered_file_new_from_uri = vfs_buffered_file_new_from_uri, 103 .vfs_buffered_file_new_from_uri = vfs_buffered_file_new_from_uri,
104 .vfs_buffered_file_release_live_fd = vfs_buffered_file_release_live_fd, 104 .vfs_buffered_file_release_live_fd = vfs_buffered_file_release_live_fd,
105 105
106 .vfs_fget_le16 = vfs_fget_le16, 106 .vfs_fget_le16 = vfs_fget_le16,
107 .vfs_fget_le32 = vfs_fget_le32, 107 .vfs_fget_le32 = vfs_fget_le32,
108 .vfs_fget_le64 = vfs_fget_le64, 108 .vfs_fget_le64 = vfs_fget_le64,
109 .vfs_fget_be16 = vfs_fget_be16, 109 .vfs_fget_be16 = vfs_fget_be16,
110 .vfs_fget_be32 = vfs_fget_be32, 110 .vfs_fget_be32 = vfs_fget_be32,
368 .flow_unlink_element = flow_unlink_element, 368 .flow_unlink_element = flow_unlink_element,
369 .effect_flow = effect_flow, 369 .effect_flow = effect_flow,
370 .volumecontrol_flow = volumecontrol_flow, 370 .volumecontrol_flow = volumecontrol_flow,
371 371
372 .util_menu_main_show = util_menu_main_show, 372 .util_menu_main_show = util_menu_main_show,
373 373
374 .get_output_list = get_output_list, 374 .get_output_list = get_output_list,
375 375
376 .input_get_volume = input_get_volume, 376 .input_get_volume = input_get_volume,
377 .construct_uri = construct_uri, 377 .construct_uri = construct_uri,
378 .uri_to_display_basename = uri_to_display_basename, 378 .uri_to_display_basename = uri_to_display_basename,
539 { 539 {
540 InputPlugin *p = INPUT_PLUGIN(plugin); 540 InputPlugin *p = INPUT_PLUGIN(plugin);
541 541
542 p->get_vis_type = input_get_vis_type; 542 p->get_vis_type = input_get_vis_type;
543 p->add_vis_pcm = input_add_vis_pcm; 543 p->add_vis_pcm = input_add_vis_pcm;
544 544
545 /* Pretty const casts courtesy of XMMS's plugin.h legacy. Anyone 545 /* Pretty const casts courtesy of XMMS's plugin.h legacy. Anyone
546 else thinks we could use a CONST macro to solve the warnings? 546 else thinks we could use a CONST macro to solve the warnings?
547 - descender */ 547 - descender */
548 p->set_info = (void (*)(gchar *, gint, gint, gint, gint)) playlist_set_info_old_abi; 548 p->set_info = (void (*)(gchar *, gint, gint, gint, gint)) playlist_set_info_old_abi;
549 p->set_info_text = input_set_info_text; 549 p->set_info_text = input_set_info_text;
550 550
551 ip_data.input_list = g_list_append(ip_data.input_list, p); 551 ip_data.input_list = g_list_append(ip_data.input_list, p);
552 552
553 p->enabled = TRUE; 553 p->enabled = TRUE;
554 554
555 /* XXX: we need something better than p->filename if plugins 555 /* XXX: we need something better than p->filename if plugins
556 will eventually provide multiple plugins --nenolod */ 556 will eventually provide multiple plugins --nenolod */
557 mowgli_dictionary_add(plugin_dict, g_basename(p->filename), p); 557 mowgli_dictionary_add(plugin_dict, g_basename(p->filename), p);
576 576
577 static void 577 static void
578 output_plugin_init(Plugin * plugin) 578 output_plugin_init(Plugin * plugin)
579 { 579 {
580 OutputPlugin *p = OUTPUT_PLUGIN(plugin); 580 OutputPlugin *p = OUTPUT_PLUGIN(plugin);
581 op_data.output_list = g_list_append(op_data.output_list, p); 581 op_data.output_list = g_list_append(op_data.output_list, p);
582 582
583 mowgli_dictionary_add(plugin_dict, g_basename(p->filename), p); 583 mowgli_dictionary_add(plugin_dict, g_basename(p->filename), p);
584 } 584 }
585 585
586 static void 586 static void
749 return; 749 return;
750 750
751 g_message("Loaded plugin (%s)", filename); 751 g_message("Loaded plugin (%s)", filename);
752 752
753 if (!(module = g_module_open(filename, G_MODULE_BIND_LOCAL))) { 753 if (!(module = g_module_open(filename, G_MODULE_BIND_LOCAL))) {
754 printf("Failed to load plugin (%s): %s\n", 754 printf("Failed to load plugin (%s): %s\n",
755 filename, g_module_error()); 755 filename, g_module_error());
756 return; 756 return;
757 } 757 }
758 758
759 /* v2 plugin loading */ 759 /* v2 plugin loading */
1010 } 1010 }
1011 1011
1012 if (op->handle) 1012 if (op->handle)
1013 g_module_close(op->handle); 1013 g_module_close(op->handle);
1014 } 1014 }
1015 1015
1016 if (op_data.output_list != NULL) 1016 if (op_data.output_list != NULL)
1017 { 1017 {
1018 g_list_free(op_data.output_list); 1018 g_list_free(op_data.output_list);
1019 op_data.output_list = NULL; 1019 op_data.output_list = NULL;
1020 } 1020 }