67a0b40e33afb5a2e6f37c34693dbdb2f9624297
[framework/messaging/email-service.git] / email-core / email-core-global.c
1 /*
2 *  email-service
3 *
4 * Copyright (c) 2000 - 2011 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
23
24 /******************************************************************************
25  * File :  email-core-global.c
26  * Desc :  Mail Engine Global
27  *
28  * Auth :  Kyuho Jo 
29  *
30  * History : 
31  *    2010.08.25  :  created
32  *****************************************************************************/
33 #include <stdio.h>
34 #include <stdlib.h>
35 #include <string.h>
36 #include "email-core-global.h"
37
38 emf_account_t g_new_account;
39 emf_account_list_t *g_account_list = NULL;
40 int g_account_num = 0;
41 int g_account_retrieved = 0;
42
43 extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) __THROW __nonnull ((1));
44
45 INTERNAL_FUNC emf_account_t *emcore_get_new_account_reference()
46 {
47         return &g_new_account;
48 }
49
50
51
52
53