tizen 2.3 release
[framework/connectivity/multirat.git] / include / multirat_conf.h
1 #ifndef _MULTIRAT_MAIN__
2 #define _MULTIRAT_MAIN__
3
4 #include "multirat_SB_http.h"
5
6 #define MAX_CONF_VAL_SIZE             (50)
7 #define EXPECTED_BYTE                 (524288)
8 #define MULTIRAT_BLOCK_DIV            (20)
9 #define MULTIRAT_BLOCK_DIV_CON        (10)
10 #define MIN_MULTIRAT_BLOCK_SIZE       (1048576)
11 #define MIN_MULTIRAT_BLOCK_SIZE_CON   (2*1048576)
12 #define MAX_MULTIRAT_BLOCK_SIZE       (5*1024*1024)
13 #define SLEEP_TIME                    (100000)
14 #define MULTIRAT_UPPER_LIMIT          (5242880)
15 #define MULTIRAT_LOWER_LIMIT          (10*1048576)
16 #define MULTIRAT_LOWER_LIMIT_TWO_CHUNK (15*1048576)
17 #define KEEPALIVE_SUPPORT             0
18 #define DEFAULT_INTERFACE             "wlan0"
19 #define MAIN_SOCKET_DEFAULT           0  /* Change to 1 if LTE is default */
20 #define SPEED_TIMEOUT                 (30)
21 #define BLOCK_SIZE_SPEED              (32764)
22 #define MIN_SIZE_TO_HANDOVER          (1048576)
23 #define MIN_LAST_CHUNK                (3145728)
24 #define MIN_DATA_FOR_SPEED            (131072)
25
26 #define MAX_JUMP                      (10)
27 #define MIN_BLOCK_SIZE                (32768)
28 #define MAX_BLOCK_SIZE                (1048576)
29 #define MIN_BLOCK_SIZE_SPEED          (4*32768)
30
31 #define MULTIRAT_SIZE_THRESHOLD       (30*1048576)
32
33 #define MIN_FILE_NODE_SIZE            (20*1048576)/*File thread remain active if filenode>this*/
34 #define FILE_THREAD_SOCK_CREATE       1
35 #define FILE_THREAD_SOCK_READ         2
36
37 #define MULTIRAT_TEMP_THRESHOLD       2
38 #define MULTIRAT_CHUNK_SIZE           (20*1048576)
39 #define BLOCK_TIME_OUT                (8*1000*1000)
40 #define TEMP_TIME_OUT                 (3*1000*1000)
41
42 #define LTE_IFACE_NAME                "rmnet0"
43 #define WIFI_IFACE_NAME               "wlan0"
44 #define LTE                           "lte"
45
46 #define WATCH_DOG_CONNECT_TIMEOUT     2
47
48 #define USER_OK 1
49 #define USER_CANCEL 2
50 #define USER_POP_UP 3
51
52 /**
53  * @brief                           get intance of multirat configuration
54  * @param[in]                       none
55  * @return                          multirate configuration object
56  */
57 struct multirat_configuration* multirat_configuration_get_instance();
58
59 /**
60  * @brief                           read the multirate configuartion data
61  * @param[in]                       None
62  * @return
63  * @retval            TRUE          read data Success
64  * @retval            FALSE           read data Failure
65  */
66 int multirat_configuration_readdata();
67
68 /**
69  * @brief                           get multirat configuartion
70  * @param[in]         data          None
71  * @return                          void
72  * @retval
73  */
74 void multirat_configuration_get_configuration(int8 *data);
75
76 /**
77  * @brief                           print entry value for multirate configuartion
78  * @param[in]                       void
79  * @return                          void
80  */
81 void multirat_configuration_print_entry_value();
82
83 /**
84  * @brief                           set the default value for multirate configuartion
85  * @param[in]                       void
86  * @return                          void
87  */
88 void multirat_configuration_set_default_value(void);
89
90 /**
91  * @brief                           get threshold multirat configuration
92  * @param[in]                       none
93  * @return                          multirate threasold value
94  */
95 int32 get_multirat_threshold();
96
97 /**
98  * @brief                           get threshold temparature  configuartion
99  * @param[in]                       none
100  * @return                          default temparture
101  */
102 int32 get_multirat_temp_threshold();
103
104 uint32 lib_init_success(void);
105
106 uint32 smartbonding_client_init(void);
107
108 #endif
109
110