• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 
19 #ifndef OSCL_DNS_TUNEABLES_H_INCLUDED
20 #define OSCL_DNS_TUNEABLES_H_INCLUDED
21 
22 
23 /*!
24 ** This file contains default definitions of all the
25 ** the tuning parameters for the Oscl DNS.
26 */
27 
28 /*!
29 ** If parameters are defined in osclconfig_io.h, those definitions
30 ** will take precedence over the ones in this file.
31 */
32 #include "osclconfig_io.h"
33 #include "osclconfig_proc.h"
34 
35 /*!
36 ** Enable/disable the PV DNS server here.
37 */
38 #ifndef PV_DNS_SERVER
39 #define PV_DNS_SERVER 1
40 #endif
41 
42 #if(PV_DNS_SERVER)
43 
44 /*!
45 ** PV_DNS_IS_THREAD chooses either the threaded or AO-based
46 ** implementation of the PV DNS request.  Note: AO-based
47 ** option is not good here, since some DNS requests will
48 ** block the caller until completion.
49 */
50 #if !defined PV_DNS_IS_THREAD
51 #define PV_DNS_IS_THREAD OSCL_HAS_THREAD_SUPPORT
52 #endif
53 
54 //for test-- to force AO implementation
55 //#undef PV_DNS_IS_THREAD
56 //#define PV_DNS_IS_THREAD 0
57 
58 
59 #endif//PV_DNS_SERVER
60 #endif
61 
62