Get rid of #ifdef ENABLE_THREADS stuff, that was done away with a while

2004-05-04  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-session.h: Get rid of #ifdef ENABLE_THREADS stuff, that
	was done away with a while back and is causing problems for 3rd
	parties trying to use camel unless they explicityly #define
	ENABLE_THREADS in their code.

svn path=/trunk/; revision=25788
This commit is contained in:
Jeffrey Stedfast
2004-05-04 18:01:57 +00:00
committed by Jeffrey Stedfast
parent 6b3a25c2b8
commit f968204032
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2004-05-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-session.h: Get rid of #ifdef ENABLE_THREADS stuff, that
was done away with a while back and is causing problems for 3rd
parties trying to use camel unless they explicityly #define
ENABLE_THREADS in their code.
2004-05-04 Christian Kellner <gicmo@xatom.net>
* providers/groupwise/camel-gw-listener.h: Fixed typo.

View File

@ -70,10 +70,8 @@ struct _CamelSession
gboolean check_junk:1;
};
#ifdef ENABLE_THREADS
typedef struct _CamelSessionThreadOps CamelSessionThreadOps;
typedef struct _CamelSessionThreadMsg CamelSessionThreadMsg;
#endif
typedef struct {
CamelObjectClass parent_class;
@ -104,15 +102,13 @@ typedef struct {
CamelFilterDriver * (*get_filter_driver) (CamelSession *session,
const char *type,
CamelException *ex);
#ifdef ENABLE_THREADS
/* mechanism for creating and maintaining multiple threads of control */
void *(*thread_msg_new)(CamelSession *session, CamelSessionThreadOps *ops, unsigned int size);
void (*thread_msg_free)(CamelSession *session, CamelSessionThreadMsg *msg);
int (*thread_queue)(CamelSession *session, CamelSessionThreadMsg *msg, int flags);
void (*thread_wait)(CamelSession *session, int id);
void (*thread_status)(CamelSession *session, CamelSessionThreadMsg *msg, const char *text, int pc);
#endif
} CamelSessionClass;
@ -170,7 +166,6 @@ gboolean camel_session_check_junk (CamelSession *session);
void camel_session_set_check_junk (CamelSession *session,
gboolean check_junk);
#ifdef ENABLE_THREADS
struct _CamelSessionThreadOps {
void (*receive)(CamelSession *session, struct _CamelSessionThreadMsg *m);
void (*free)(CamelSession *session, struct _CamelSessionThreadMsg *m);
@ -195,8 +190,6 @@ void camel_session_thread_msg_free(CamelSession *session, CamelSessionThreadMsg
int camel_session_thread_queue(CamelSession *session, CamelSessionThreadMsg *msg, int flags);
void camel_session_thread_wait(CamelSession *session, int id);
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */