1 /****************************************************************************** 2 * 3 * Copyright (C) 2009-2018 Realtek Corporation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 /****************************************************************************** 20 * 21 * Filename: rtk_btsnoop_net.h 22 * 23 * Description: A wrapper header file of bt_vendor_lib.h 24 * 25 * Contains definitions specific for interfacing with Realtek 26 * Bluetooth chipsets 27 * 28 ******************************************************************************/ 29 30 #ifndef RTK_BTSNOOP_NET_H 31 #define RTK_BTSNOOP_NET_H 32 33 #include <assert.h> 34 #include <errno.h> 35 #include <netinet/in.h> 36 #include <pthread.h> 37 #include <stdbool.h> 38 #include <string.h> 39 #include <sys/prctl.h> 40 #include <sys/socket.h> 41 #include <sys/types.h> 42 #include <time.h> 43 #include "hci_h5_int.h" 44 #include <utils/Log.h> 45 #include <sys/stat.h> 46 #include <stdio.h> 47 #include <stdlib.h> 48 #include <fcntl.h> 49 50 void rtk_btsnoop_open(void); 51 void rtk_btsnoop_close(void); 52 void rtk_btsnoop_capture(const HC_BT_HDR *p_buf, bool is_rcvd); 53 54 void rtk_btsnoop_net_open(); 55 void rtk_btsnoop_net_close(); 56 void rtk_btsnoop_net_write(serial_data_type_t type, uint8_t *data, bool is_received); 57 58 #endif 59