tizen 2.3 release
[framework/connectivity/multirat.git] / src / multirat_conf.c
1 #include "multirat_conf.h"
2 #include "multirat_SB_http.h"
3 #include "multirat_libapi.h"
4 #ifdef TIZEN_UX_SUPPORT
5 #include "smartbonding-client.h"
6 #endif
7
8 #include <glib.h>
9
10 #ifdef TIZEN_UX_SUPPORT
11 static int Lib_Init = SMBD_ERR_INVALID_PARAMETER;
12 #endif
13
14
15 #ifdef TIZEN_UX_SUPPORT
16 uint32 lib_init_success(void)
17 {
18         if(Lib_Init != SMBD_ERR_NONE)
19         {
20                 return 0;
21         }
22         else
23                 return 1;
24 }
25
26 uint32 smartbonding_client_init(void)
27 {
28         if(lib_init_success() != 1)
29         {
30                 Lib_Init = smart_bonding_init();
31                 if (Lib_Init != SMBD_ERR_NONE) {
32                         TIZEN_LOGD("Smart Bonding Client Library Init Failed");
33                         return 0;
34                 }
35                 else{
36                         TIZEN_LOGD("Smart Bonding Client Library Init Success");
37                         return 1;
38                 }
39         }
40         return 1;
41 }
42 #endif
43
44 int32 get_multirat_threshold()
45 {
46         return MULTIRAT_SIZE_THRESHOLD;
47 }
48
49
50 int32 get_multirat_temp_threshold()
51 {
52         return  MULTIRAT_TEMP_THRESHOLD;
53 }
54