evolution-3.6.4/em-format/e-mail-format-extensions.c

No issues found

Incomplete coverage

Tool Failure ID Location Function Message Data
clang-analyzer no-output-found e-mail-format-extensions.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
clang-analyzer no-output-found e-mail-format-extensions.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
  1 /*
  2  * e-mail-format-extensions.c
  3  *
  4  * This program is free software; you can redistribute it and/or
  5  * modify it under the terms of the GNU Lesser General Public
  6  * License as published by the Free Software Foundation; either
  7  * version 2 of the License, or (at your option) version 3.
  8  *
  9  * This program is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 12  * Lesser General Public License for more details.
 13  *
 14  * You should have received a copy of the GNU Lesser General Public
 15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
 16  *
 17  */
 18 
 19 #include "e-mail-format-extensions.h"
 20 
 21 #include "em-format/e-mail-parser-extension.h"
 22 #include "em-format/e-mail-formatter-extension.h"
 23 
 24 typedef GType (*TypeFunc) (void);
 25 
 26 TypeFunc parser_funcs[] = {
 27 	e_mail_parser_application_mbox_get_type,
 28 	e_mail_parser_attachment_bar_get_type,
 29 	e_mail_parser_headers_get_type,
 30 	e_mail_parser_message_get_type,
 31 	e_mail_parser_secure_button_get_type,
 32 	e_mail_parser_source_get_type,
 33 	e_mail_parser_image_get_type,
 34 	e_mail_parser_inline_pgp_encrypted_get_type,
 35 	e_mail_parser_inline_pgp_signed_get_type,
 36 	e_mail_parser_message_delivery_status_get_type,
 37 	e_mail_parser_message_external_get_type,
 38 	e_mail_parser_message_rfc822_get_type,
 39 	e_mail_parser_multipart_alternative_get_type,
 40 	e_mail_parser_multipart_apple_double_get_type,
 41 	e_mail_parser_multipart_digest_get_type,
 42 	e_mail_parser_multipart_encrypted_get_type,
 43 	e_mail_parser_multipart_mixed_get_type,
 44 	e_mail_parser_multipart_related_get_type,
 45 	e_mail_parser_multipart_signed_get_type,
 46 	e_mail_parser_text_enriched_get_type,
 47 	e_mail_parser_text_html_get_type,
 48 	e_mail_parser_text_plain_get_type,
 49 #ifdef ENABLE_SMIME
 50 	e_mail_parser_application_smime_get_type,
 51 #endif
 52 	NULL
 53 };
 54 
 55 TypeFunc formatter_funcs[] = {
 56 	e_mail_formatter_attachment_get_type,
 57 	e_mail_formatter_attachment_bar_get_type,
 58 	e_mail_formatter_error_get_type,
 59 	e_mail_formatter_headers_get_type,
 60 	e_mail_formatter_secure_button_get_type,
 61 	e_mail_formatter_source_get_type,
 62 	e_mail_formatter_image_get_type,
 63 	e_mail_formatter_message_rfc822_get_type,
 64 	e_mail_formatter_text_enriched_get_type,
 65 	e_mail_formatter_text_html_get_type,
 66 	e_mail_formatter_text_plain_get_type,
 67 	NULL
 68 };
 69 
 70 TypeFunc quote_formatter_funcs[] = {
 71 	e_mail_formatter_quote_attachment_get_type,
 72 	e_mail_formatter_quote_headers_get_type,
 73 	e_mail_formatter_quote_message_rfc822_get_type,
 74 	e_mail_formatter_quote_text_enriched_get_type,
 75 	e_mail_formatter_quote_text_html_get_type,
 76 	e_mail_formatter_quote_text_plain_get_type,
 77 	NULL
 78 };
 79 
 80 TypeFunc print_formatter_funcs[] = {
 81 	e_mail_formatter_print_headers_get_type,
 82 	NULL
 83 };
 84 
 85 static void
 86 load (EMailExtensionRegistry *ereg,
 87       TypeFunc *func_array)
 88 {
 89 	gint i = 0;
 90 
 91 	for (i = 0; func_array[i] != NULL; i++) {
 92 		GType type;
 93 		EMailExtension *extension;
 94 
 95 		type = func_array[i]();
 96 		extension = g_object_new (type, NULL);
 97 
 98 		e_mail_extension_registry_add_extension (ereg, extension);
 99 	}
100 }
101 
102 void
103 e_mail_parser_internal_extensions_load (EMailExtensionRegistry *ereg)
104 {
105 	load (ereg, parser_funcs);
106 }
107 
108 void
109 e_mail_formatter_internal_extensions_load (EMailExtensionRegistry *ereg)
110 {
111 	load (ereg, formatter_funcs);
112 }
113 
114 void
115 e_mail_formatter_quote_internal_extensions_load (EMailExtensionRegistry *ereg)
116 {
117 	load (ereg, quote_formatter_funcs);
118 }
119 
120 void
121 e_mail_formatter_print_internal_extensions_load (EMailExtensionRegistry *ereg)
122 {
123 	load (ereg, print_formatter_funcs);
124 }