4 * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef _DATA_CONNECTION_H_
20 #define _DATA_CONNECTION_H_
22 /* Total Number of seconds in years between NTP Reference time(1900) to UTC reference time(1970)*/
23 #define UTC_NTP_BIAS 2208988800
24 /* Total Number of seconds in years between UTC reference time(1970) to GPS Refernce time(1980)*/
25 #define UTC_GPS_BIAS 315964800
27 #define MAX_NUMBER_OF_URLS 3
31 unsigned int start_pdp_connection(void);
32 unsigned int stop_pdp_connection(void);
34 unsigned int query_dns(char *pdns_lookup_addr, unsigned int *ipaddr, int *port);