gchar *argv[])
{
g_type_init ();
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
if (argc != 2) {
g_print ("Please enter a path to store the cache \n");
FILE * fin = NULL;
g_type_init ();
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
context = g_option_context_new ("- test utility for e-d-s file backend");
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
if (argc < 2)
do_usage (argv[0]);
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
camel_init (NULL, 0);
if (!strcmp(argv[1], "compress"))
printf ("Camel text index tester!\n");
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
camel_init (NULL, 0);
idx = (CamelIndex *)camel_text_index_new ("textindex", O_CREAT|O_RDWR|O_TRUNC);
}
uri = argv[1];
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
system ("rm -rf /tmp/test-camel-imapx");
camel_init ("/tmp/test-camel-imapx", TRUE);
camel_provider_init ();
setup = 1;
g_type_init ();
+ #if !GLIB_CHECK_VERSION(2,31,0)
/* yeah, we do need ot thread init, even though camel isn't compiled with enable threads */
g_thread_init (NULL);
+ #endif
path = g_strdup_printf ("/tmp/camel-test");
if (mkdir (path, 0700) == -1 && errno != EEXIST)
return;
g_type_init ();
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
initialized = TRUE;
}
return;
g_type_init ();
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
initialized = TRUE;
}
gchar **argv)
{
g_type_init ();
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
gtk_init (&argc, &argv);
e_passwords_init ();
gchar **argv)
{
gtk_init (&argc, &argv);
+ #if !GLIB_CHECK_VERSION(2,31,0)
g_thread_init (NULL);
+ #endif
camel_init (NULL, 0);