• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
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 express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "chre/platform/host_link.h"
18 #include "chre/core/event_loop_manager.h"
19 
20 namespace chre {
21 
flushMessagesSentByNanoapp(uint64_t)22 void HostLink::flushMessagesSentByNanoapp(uint64_t /* appId */) {
23   // TODO: implement
24 }
25 
sendMessage(const MessageToHost *)26 bool HostLink::sendMessage(const MessageToHost * /* message */) {
27   // TODO: implement
28   return false;
29 }
30 
sendNanConfiguration(bool enable)31 void HostLinkBase::sendNanConfiguration(bool enable) {
32 #if defined(CHRE_WIFI_SUPPORT_ENABLED) && defined(CHRE_WIFI_NAN_SUPPORT_ENABLED)
33   EventLoopManagerSingleton::get()
34       ->getWifiRequestManager()
35       .updateNanAvailability(enable);
36 #else
37   UNUSED_VAR(enable);
38 #endif
39 }
40 
41 }  // namespace chre
42