Removed all files.
authorNot Zed <NotZed@Ximian.com>
Wed, 21 Feb 2001 20:30:29 +0000 (20:30 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Wed, 21 Feb 2001 20:30:29 +0000 (20:30 +0000)
2001-02-22  Not Zed  <NotZed@Ximian.com>

        * providers/vee/*: Removed all files.

        * camel-private.h: Move camel-vee-private.h stuff into here.

        * camel-session.c: Move the vee_provider here, and initialise it
        always as part of a session.  The vfolder provider is always
        available.

        * providers/Makefile.am: Remove "vee" from the build list, now
        built as part of the main library.

        * Makefile.am (libcamelinclude_HEADERS):
        (libcamel_la_SOURCES): Added camel-vee-store.[ch],
        camel-vee-folder.[ch].

12 files changed:
camel/ChangeLog
camel/Makefile.am
camel/camel-private.h
camel/camel-session.c
camel/camel-vee-folder.c [moved from camel/providers/vee/camel-vee-folder.c with 99% similarity]
camel/camel-vee-folder.h [moved from camel/providers/vee/camel-vee-folder.h with 100% similarity]
camel/camel-vee-store.c [moved from camel/providers/vee/camel-vee-store.c with 100% similarity]
camel/camel-vee-store.h [moved from camel/providers/vee/camel-vee-store.h with 100% similarity]
camel/providers/Makefile.am
camel/providers/vee/Makefile.am [deleted file]
camel/providers/vee/camel-vee-private.h [deleted file]
camel/providers/vee/camel-vee-provider.c [deleted file]

index a8e84df..164cd55 100644 (file)
@@ -1,5 +1,20 @@
 2001-02-22  Not Zed  <NotZed@Ximian.com>
 
+       * providers/vee/*: Removed all files.
+       
+       * camel-private.h: Move camel-vee-private.h stuff into here.
+
+       * camel-session.c: Move the vee_provider here, and initialise it
+       always as part of a session.  The vfolder provider is always
+       available.
+
+       * providers/Makefile.am: Remove "vee" from the build list, now
+       built as part of the main library.
+
+       * Makefile.am (libcamelinclude_HEADERS): 
+       (libcamel_la_SOURCES): Added camel-vee-store.[ch],
+       camel-vee-folder.[ch].
+
        * providers/vee/camel-vee-folder.c (vee_folder_build): Removed,
        not used.
        (camel_vee_folder_new): Removed call to build_folder.
index 55d28f4..f2f46c9 100644 (file)
@@ -64,6 +64,8 @@ libcamel_la_SOURCES =                                 \
        camel-transport.c                       \
        camel-uid-cache.c                       \
        camel-url.c                             \
+       camel-vee-folder.c                      \
+       camel-vee-store.c                       \
        camel-charset-map.c                     \
        camel.c                                 \
        gstring-util.c                          \
@@ -121,6 +123,8 @@ libcamelinclude_HEADERS =                   \
        camel-types.h                           \
        camel-uid-cache.h                       \
        camel-url.h                             \
+       camel-vee-folder.h                      \
+       camel-vee-store.h                       \
        camel.h                                 \
        gstring-util.h                          \
        hash-table-utils.h                      \
index cdfe878..9be3a24 100644 (file)
@@ -144,6 +144,33 @@ struct _CamelFolderSummaryPrivate {
 #define CAMEL_SUMMARY_UNLOCK(f, l)
 #endif
 
+struct _CamelVeeStorePrivate {
+};
+
+#ifdef ENABLE_THREADS
+#define CAMEL_VEE_STORE_LOCK(f, l) (e_mutex_lock(((CamelVeeStore *)f)->priv->l))
+#define CAMEL_VEE_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelVeeStore *)f)->priv->l))
+#else
+#define CAMEL_VEE_STORE_LOCK(f, l)
+#define CAMEL_VEE_STORE_UNLOCK(f, l)
+#endif
+
+struct _CamelVeeFolderPrivate {
+       GList *folders;         /* lock using subfolder_lock before changing/accessing */
+
+#ifdef ENABLE_THREADS
+       GMutex *summary_lock;           /* for locking vfolder summary */
+       GMutex *subfolder_lock;         /* for locking the subfolder list */
+#endif
+};
+
+#ifdef ENABLE_THREADS
+#define CAMEL_VEE_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelVeeFolder *)f)->priv->l))
+#define CAMEL_VEE_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelVeeFolder *)f)->priv->l))
+#else
+#define CAMEL_VEE_FOLDER_LOCK(f, l)
+#define CAMEL_VEE_FOLDER_UNLOCK(f, l)
+#endif
 
 #ifdef __cplusplus
 }
index 5ef3115..f8e27c3 100644 (file)
@@ -40,6 +40,7 @@
 #include "camel-url.h"
 #include "hash-table-utils.h"
 #include <gal/util/e-util.h>
+#include "camel-vee-store.h"
 
 #include "camel-private.h"
 
 
 static CamelObjectClass *parent_class;
 
+/* The vfolder provider is always avilable */
+static CamelProvider vee_provider = {
+       "vfolder",
+       N_("Virtual folder email provider"),
+
+       N_("For reading mail as a query of another set of folders"),
+
+       "vfolder",
+
+       0,
+
+       0,
+
+       { 0, 0 },
+
+       NULL
+};
+
 static void
 camel_session_init (CamelSession *session)
 {
@@ -135,6 +154,11 @@ camel_session_new (const char *storage_path,
        session->authenticator = authenticator;
        session->registrar = registrar;
        session->remover = remover;
+
+       vee_provider.object_types[CAMEL_PROVIDER_STORE] = camel_vee_store_get_type();
+       vee_provider.service_cache = g_hash_table_new(camel_url_hash, camel_url_equal);
+       camel_session_register_provider(session, &vee_provider);
+
        return session;
 }
 
similarity index 99%
rename from camel/providers/vee/camel-vee-folder.c
rename to camel/camel-vee-folder.c
index 18c1fe2..9db4294 100644 (file)
@@ -28,7 +28,7 @@
 #include "camel-folder-search.h"
 
 #include "camel-vee-store.h"   /* for open flags */
-#include "camel-vee-private.h"
+#include "camel-private.h"
 
 #ifdef DOESTRV
 #include "e-util/e-memory.h"
index 1a84059..5fd7c83 100644 (file)
@@ -5,10 +5,7 @@ NNTP_DIR=nntp
 endif
 
 # SUBDIRS = mbox pop3 sendmail smtp vee
-SUBDIRS = pop3 sendmail smtp vee imap $(NNTP_DIR) local
-
-# these ones are disabled for the moment.
-# maildir
+SUBDIRS = pop3 sendmail smtp imap $(NNTP_DIR) local
 
 # these ones are deprecated, and will no longer be maintained
-# mbox mh
\ No newline at end of file
+# mbox mh maildir vee
\ No newline at end of file
diff --git a/camel/providers/vee/Makefile.am b/camel/providers/vee/Makefile.am
deleted file mode 100644 (file)
index b5026c8..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-libcamelveeincludedir = $(includedir)/camel
-
-
-providerdir = $(pkglibdir)/camel-providers/$(VERSION)
-
-provider_LTLIBRARIES = libcamelvee.la
-provider_DATA = libcamelvee.urls
-
-INCLUDES = -I.. \
-       -I$(srcdir)/..                          \
-       -I$(top_srcdir)/camel                   \
-       -I$(top_srcdir)/intl                    \
-       -I$(top_srcdir)/libibex                 \
-       -I$(top_srcdir)/e-util                  \
-       -I$(top_srcdir)                         \
-       -I$(includedir)                         \
-       $(GTK_INCLUDEDIR)                       \
-       -DG_LOG_DOMAIN=\"camel-vee-provider\"   
-
-libcamelvee_la_SOURCES =                       \
-       camel-vee-folder.c                      \
-       camel-vee-provider.c                    \
-       camel-vee-store.c
-
-libcamelveeinclude_HEADERS =                   \
-       camel-vee-folder.h                      \
-       camel-vee-store.h
-
-noinst_HEADERS =                               \
-       camel-vee-private.h
-
-libcamelvee_la_LDFLAGS = -version-info 0:0:0
-
-libcamelvee_la_LIBADD = $(top_builddir)/e-util/libeutil.la $(top_builddir)/libibex/libibex.la $(UNICODE_LIBS)
-#libcamelvee_la_LIBADD = $(top_builddir)/libibex/libibex.la $(UNICODE_LIBS)
-
-EXTRA_DIST = libcamelvee.urls
-
diff --git a/camel/providers/vee/camel-vee-private.h b/camel/providers/vee/camel-vee-private.h
deleted file mode 100644 (file)
index 6633647..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
- *  camel-vee-private.h: Private info for vee.
- *
- * Authors: Michael Zucchi <notzed@helixcode.com>
- *
- * Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com)
- *
- * This program is free software; you can redistribute it and/or 
- * modify it under the terms of the GNU General Public License as 
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- */
-
-#ifndef CAMEL_VEE_PRIVATE_H
-#define CAMEL_VEE_PRIVATE_H 1
-
-#ifdef __cplusplus
-extern "C" {
-#pragma }
-#endif /* __cplusplus }*/
-
-/* need a way to configure and save this data, if this header is to
-   be installed.  For now, dont install it */
-
-#include "config.h"
-
-struct _CamelVeeStorePrivate {
-};
-
-#ifdef ENABLE_THREADS
-#define CAMEL_VEE_STORE_LOCK(f, l) (e_mutex_lock(((CamelVeeStore *)f)->priv->l))
-#define CAMEL_VEE_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelVeeStore *)f)->priv->l))
-#else
-#define CAMEL_VEE_STORE_LOCK(f, l)
-#define CAMEL_VEE_STORE_UNLOCK(f, l)
-#endif
-
-struct _CamelVeeFolderPrivate {
-       GList *folders;         /* lock using subfolder_lock before changing/accessing */
-
-#ifdef ENABLE_THREADS
-       GMutex *summary_lock;           /* for locking vfolder summary */
-       GMutex *subfolder_lock;         /* for locking the subfolder list */
-#endif
-};
-
-#ifdef ENABLE_THREADS
-#define CAMEL_VEE_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelVeeFolder *)f)->priv->l))
-#define CAMEL_VEE_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelVeeFolder *)f)->priv->l))
-#else
-#define CAMEL_VEE_FOLDER_LOCK(f, l)
-#define CAMEL_VEE_FOLDER_UNLOCK(f, l)
-#endif
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* CAMEL_VEE_PRIVATE_H */
-
diff --git a/camel/providers/vee/camel-vee-provider.c b/camel/providers/vee/camel-vee-provider.c
deleted file mode 100644 (file)
index 4588fb7..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- *  Copyright (C) 2000 Helix Code Inc.
- *
- *  Authors: Michael Zucchi <notzed@helixcode.com>
- *
- *  This program is free software; you can redistribute it and/or 
- *  modify it under the terms of the GNU General Public License as 
- *  published by the Free Software Foundation; either version 2 of the
- *  License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- *  USA
- */
-
-#include "config.h"
-#include "camel-vee-store.h"
-#include "camel-provider.h"
-#include "camel-session.h"
-#include "camel-url.h"
-
-static CamelProvider vee_provider = {
-       "vfolder",
-       N_("Virtual folder email provider"),
-
-       N_("For reading mail as a query of another set of folders"),
-
-       "vfolder",
-
-       0,
-
-       0,
-
-       { 0, 0 },
-
-       NULL
-};
-
-void
-camel_provider_module_init (CamelSession *session)
-{
-       vee_provider.object_types[CAMEL_PROVIDER_STORE] =
-               camel_vee_store_get_type();
-
-       vee_provider.service_cache = g_hash_table_new (camel_url_hash, camel_url_equal);
-       
-       camel_session_register_provider (session, &vee_provider);
-}