/* Return TRUE if we can write a file with the given GArray of encapsulation types and the given bitmask of comment types.  */
gboolean wtap_dump_can_write(const GArray *file_encaps, guint32 required_comment_types)
/* Return TRUE if we can write a file with the given GArray of encapsulation types and the given bitmask of comment types.  */
gboolean wtap_dump_can_write(const GArray *file_encaps, guint32 required_comment_types)
{
	int ft;
	for (ft = 0; ft < WTAP_NUM_FILE_TYPES_SUBTYPES; ft++) {
		if (wtap_dump_can_write_format(ft, file_encaps, required_comment_types)) {
			return TRUE;
		}
	}
	return FALSE;
}