1 #include "notmuch-client.h"
3 /* CRUFTY BOILERPLATE for GMimeSession (dkg thinks this will go away once GMime 2.6 comes out) */
4 typedef struct _NotmuchGmimeSession NotmuchGmimeSession;
5 typedef struct _NotmuchGmimeSessionClass NotmuchGmimeSessionClass;
7 struct _NotmuchGmimeSession {
8 GMimeSession parent_object;
11 struct _NotmuchGmimeSessionClass {
12 GMimeSessionClass parent_class;
15 static void notmuch_gmime_session_class_init (NotmuchGmimeSessionClass *klass);
17 static GMimeSessionClass *parent_class = NULL;
20 notmuch_gmime_session_get_type (void)
22 static GType type = 0;
25 static const GTypeInfo info = {
26 sizeof (NotmuchGmimeSessionClass),
27 NULL, /* base_class_init */
28 NULL, /* base_class_finalize */
29 (GClassInitFunc) notmuch_gmime_session_class_init,
30 NULL, /* class_finalize */
31 NULL, /* class_data */
32 sizeof (NotmuchGmimeSession),
34 NULL, /* object_init */
35 NULL, /* value_table */
37 type = g_type_register_static (GMIME_TYPE_SESSION, "NotmuchGmimeSession", &info, 0);
43 notmuch_gmime_session_class_init (NotmuchGmimeSessionClass *klass)
45 GMimeSessionClass *session_class = GMIME_SESSION_CLASS (klass);
46 parent_class = g_type_class_ref (GMIME_TYPE_SESSION);
47 session_class->request_passwd = NULL;
49 /* END CRUFTY BOILERPLATE */