2008-07-05 [colin] 3.5.0cvs8
[claws.git] / src / common / session.h
index c94d45e02344c7f772b666285d4132206bd9f078..7f0b957a42f2ad82260dea7bc9b635e09bf468e4 100644 (file)
@@ -92,7 +92,7 @@ struct _Session
        gchar *server;
        gushort port;
 
-#if USE_OPENSSL
+#if (defined(USE_OPENSSL) || defined (USE_GNUTLS))
        SSLType ssl_type;
 #endif
 
@@ -154,9 +154,14 @@ struct _Session
        gpointer recv_data_notify_data;
        gpointer send_data_progressive_notify_data;
        gpointer send_data_notify_data;
+       
+       const void *account;
+       gboolean is_smtp;
 };
 
-void session_init              (Session        *session);
+void session_init              (Session        *session, 
+                                const void     *prefs_account,
+                                gboolean        is_smtp);
 gint session_connect           (Session        *session,
                                 const gchar    *server,
                                 gushort         port);
@@ -187,7 +192,7 @@ void session_set_send_data_notify   (Session        *session,
                                         SendDataNotify  notify_func,
                                         gpointer        data);
 
-#if USE_OPENSSL
+#if (defined(USE_OPENSSL) || defined (USE_GNUTLS))
 gint session_start_tls (Session        *session);
 #endif