test3.c 807 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "camel.h"

int
main (int argc, char**argv)
{
	GtkType type;
	
	gtk_init (&argc, &argv);
	camel_init ();
	
	printf ("Test 3 : data wrapper repository\n");

	printf ("\nMime type : \"multipart\"\n");
15
	type = data_wrapper_repository_get_data_wrapper_type ("multipart");
16 17 18
	printf ("Type found %s\n", gtk_type_name (type) );
	
	printf ("\nMime type : \"multipart/alternative\"\n");
19
	type = data_wrapper_repository_get_data_wrapper_type ("multipart/alternative");
20 21 22
	printf ("Type found %s\n", gtk_type_name (type) );
	
	printf ("\nMime type : \"toto/titi\"\n");
23
	type = data_wrapper_repository_get_data_wrapper_type ("toto/titi");
24 25 26
	printf ("Type found %s\n", gtk_type_name (type) );
	
	printf ("Test3 finished\n");
bertrand's avatar
bertrand committed
27
	return 1;
28 29
}