1 /** @file
2 
3   Stub file for linking libinknet.a from unit tests
4 
5   @section license License
6 
7   Licensed to the Apache Software Foundation (ASF) under one
8   or more contributor license agreements.  See the NOTICE file
9   distributed with this work for additional information
10   regarding copyright ownership.  The ASF licenses this file
11   to you under the Apache License, Version 2.0 (the
12   "License"); you may not use this file except in compliance
13   with the License.  You may obtain a copy of the License at
14 
15       http://www.apache.org/licenses/LICENSE-2.0
16 
17   Unless required by applicable law or agreed to in writing, software
18   distributed under the License is distributed on an "AS IS" BASIS,
19   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20   See the License for the specific language governing permissions and
21   limitations under the License.
22  */
23 
24 #include "HttpSessionManager.h"
25 void
initialize_thread_for_http_sessions(EThread *,int)26 initialize_thread_for_http_sessions(EThread *, int)
27 {
28   ink_assert(false);
29 }
30 
31 #include "P_UnixNet.h"
32 #include "P_DNSConnection.h"
33 int
close()34 DNSConnection::close()
35 {
36   ink_assert(false);
37   return 0;
38 }
39 
40 void
trigger()41 DNSConnection::trigger()
42 {
43   ink_assert(false);
44 }
45 
46 #include "StatPages.h"
47 void
register_http(char const *,Action * (*)(Continuation *,HTTPHdr *))48 StatPagesManager::register_http(char const *, Action *(*)(Continuation *, HTTPHdr *))
49 {
50   ink_assert(false);
51 }
52 
53 #include "ParentSelection.h"
54 void
startup()55 SocksServerConfig::startup()
56 {
57   ink_assert(false);
58 }
59 
60 int SocksServerConfig::m_id = 0;
61 
62 void
findParent(HttpRequestData *,ParentResult *,unsigned int,unsigned int)63 ParentConfigParams::findParent(HttpRequestData *, ParentResult *, unsigned int, unsigned int)
64 {
65   ink_assert(false);
66 }
67 
68 void
nextParent(HttpRequestData *,ParentResult *,unsigned int,unsigned int)69 ParentConfigParams::nextParent(HttpRequestData *, ParentResult *, unsigned int, unsigned int)
70 {
71   ink_assert(false);
72 }
73 
74 #include "Log.h"
75 void
trace_in(sockaddr const *,unsigned short,char const *,...)76 Log::trace_in(sockaddr const *, unsigned short, char const *, ...)
77 {
78   ink_assert(false);
79 }
80 
81 void
trace_out(sockaddr const *,unsigned short,char const *,...)82 Log::trace_out(sockaddr const *, unsigned short, char const *, ...)
83 {
84   ink_assert(false);
85 }
86 
87 #include "InkAPIInternal.h"
88 int
invoke(int,void *) const89 APIHook::invoke(int, void *) const
90 {
91   ink_assert(false);
92   return 0;
93 }
94 
95 APIHook *
next() const96 APIHook::next() const
97 {
98   ink_assert(false);
99   return nullptr;
100 }
101 
102 APIHook *
prev() const103 APIHook::prev() const
104 {
105   ink_assert(false);
106   return nullptr;
107 }
108 
109 APIHook *
head() const110 APIHooks::head() const
111 {
112   ink_assert(false);
113   return nullptr;
114 }
115 
116 void
invoke(const char *)117 ConfigUpdateCbTable::invoke(const char * /* name ATS_UNUSED */)
118 {
119   ink_release_assert(false);
120 }
121 
122 #include "ControlMatcher.h"
123 char *
get_string()124 HttpRequestData::get_string()
125 {
126   ink_assert(false);
127   return nullptr;
128 }
129 
130 const char *
get_host()131 HttpRequestData::get_host()
132 {
133   ink_assert(false);
134   return nullptr;
135 }
136 
137 sockaddr const *
get_ip()138 HttpRequestData::get_ip()
139 {
140   ink_assert(false);
141   return nullptr;
142 }
143 
144 sockaddr const *
get_client_ip()145 HttpRequestData::get_client_ip()
146 {
147   ink_assert(false);
148   return nullptr;
149 }
150 
151 SslAPIHooks *ssl_hooks = nullptr;
152 StatPagesManager statPagesManager;
153 
154 #include "ProcessManager.h"
155 inkcoreapi ProcessManager *pmgmt = nullptr;
156 
157 int
registerMgmtCallback(int,MgmtCallback const &)158 BaseManager::registerMgmtCallback(int, MgmtCallback const &)
159 {
160   ink_assert(false);
161   return 0;
162 }
163 
164 void
signalManager(int,char const *,int)165 ProcessManager::signalManager(int, char const *, int)
166 {
167   ink_assert(false);
168   return;
169 }
170 
171 void
signalManager(int,char const *)172 ProcessManager::signalManager(int, char const *)
173 {
174   ink_assert(false);
175   return;
176 }
177