aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test3.c
blob: 9893e2e507cd6f9464d52da26a294d4f552b2e3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* -*- 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");
    type = data_wrapper_repository_get_data_wrapper_type ("multipart");
    printf ("Type found %s\n", gtk_type_name (type) );
    
    printf ("\nMime type : \"multipart/alternative\"\n");
    type = data_wrapper_repository_get_data_wrapper_type ("multipart/alternative");
    printf ("Type found %s\n", gtk_type_name (type) );
    
    printf ("\nMime type : \"toto/titi\"\n");
    type = data_wrapper_repository_get_data_wrapper_type ("toto/titi");
    printf ("Type found %s\n", gtk_type_name (type) );
    
    printf ("Test3 finished\n");
    return 1;
}