799338e8e238859c5df08f5d25d65bddf0fec67f
[platform/core/messaging/email-service.git] / email-daemon / include / email-daemon-event.h
1 /*
2 *  email-service
3 *
4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5 *
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 */
21
22 #ifndef __EMAIL_DAEMON_EVENT_H__
23 #define __EMAIL_DAEMON_EVENT_H__
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif /* __cplusplus */
29
30 #include "email-types.h"
31 #include "email-internal-types.h"
32
33 INTERNAL_FUNC int emdaemon_start_event_loop(int *err_code);
34 INTERNAL_FUNC int emdaemon_start_event_loop_for_sending_mails(int *err_code);
35 INTERNAL_FUNC int emdaemon_start_thread_for_downloading_partial_body(int *err_code);
36
37 #ifdef __FEATURE_OPEN_SSL_MULTIHREAD_HANDLE__
38 INTERNAL_FUNC void emdaemon_setup_handler_for_open_ssl_multithread(void);
39 INTERNAL_FUNC void emdaemon_cleanup_handler_for_open_ssl_multithread(void);
40 #endif /* __FEATURE_OPEN_SSL_MULTIHREAD_HANDLE__ */
41
42 #ifdef __cplusplus
43 }
44 #endif /* __cplusplus */
45
46 #endif