aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/MH/camel-mh-provider.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-12 06:34:09 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-12 06:34:09 +0800
commita478ee7e9d44ea7947b2dc51fcf5d7f09735ee52 (patch)
tree16013fe0bf49a83f311bd25c6c603d1a29e5277a /camel/providers/MH/camel-mh-provider.c
parent33ffe9aadcef483a4900cc65fc9e840220951e3c (diff)
downloadgsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.tar
gsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.tar.gz
gsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.tar.bz2
gsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.tar.lz
gsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.tar.xz
gsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.tar.zst
gsoc2013-evolution-a478ee7e9d44ea7947b2dc51fcf5d7f09735ee52.zip
new file. MH provider registration stuff.
1999-08-12 bertrand <Bertrand.Guiheneuf@aful.org> * camel/providers/MH/camel-mh-provider.c: new file. MH provider registration stuff. * camel/camel-provider.c (camel_provider_register_as_module): load a provider from a shared object (plugin). (camel_provider_register): register a provider "by hand". Used for statically defined providers. * tests/test7.c: new test. tests providers loading framework. Providers modules loading Works !!! :)))) svn path=/trunk/; revision=1105
Diffstat (limited to 'camel/providers/MH/camel-mh-provider.c')
-rw-r--r--camel/providers/MH/camel-mh-provider.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/camel/providers/MH/camel-mh-provider.c b/camel/providers/MH/camel-mh-provider.c
new file mode 100644
index 0000000000..6be4b11e9c
--- /dev/null
+++ b/camel/providers/MH/camel-mh-provider.c
@@ -0,0 +1,46 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* camel-mh-provider.c: mh provider registration code */
+
+/*
+ *
+ * Copyright (C) 1999 Bertrand Guiheneuf <Bertrand.Guiheneuf@inria.fr> .
+ *
+ * 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-mh-store.h"
+#include "camel-provider.h"
+#include "camel-log.h"
+
+
+static CamelProvider _mh_provider = {
+ (GtkType) 0,
+ PROVIDER_STORE,
+ "mh",
+ "Camel default mh provider",
+ "This is a very simple provider, mh is a bad protocol anyway",
+ (GModule *) NULL
+};
+
+
+
+CamelProvider *
+camel_provider_module_init ()
+{
+ _mh_provider.object_type = camel_mh_store_get_type();
+ return &_mh_provider;
+}