GNU Radio's FOOT Package
tracker_bluetooth.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2010 Michael Ossmann
4  * Copyright 2009, 2010 Mike Kershaw
5  *
6  * This file is part of gr-bluetooth
7  *
8  * gr-bluetooth is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * gr-bluetooth is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with gr-bluetooth; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 #ifndef __TRACKER_BLUETOOTH_H__
25 #define __TRACKER_BLUETOOTH_H__
26 
27 #include "config.h"
28 
29 #include "globalregistry.h"
30 #include "packet_bluetooth.h"
31 
33 public:
35  first_time = 0;
36  last_time = 0;
37  num_packets = 0;
38  dirty = 0;
39  }
40 
41  uint32_t lap;
42 
43  mac_addr bd_addr;
44 
46 
48 
49  kis_gps_data gpsdata;
50 
51  int dirty;
52 };
53 
55 public:
56  Tracker_Bluetooth() { fprintf(stderr, "FATAL OOPS: tracker_bluetooth()\n"); exit(1); }
57  Tracker_Bluetooth(GlobalRegistry *in_globalreg);
58 
59  int chain_handler(kis_packet *in_pack);
60 
61  void BlitDevices(int in_fd);
62 
63 protected:
64  GlobalRegistry *globalreg;
65 
66  map<uint32_t, bluetooth_network *> first_nets;
67 
68  map<uint32_t, bluetooth_network *> tracked_nets;
69 
71  int timer_ref;
72 };
73 
74 #endif
void BlitDevices(int in_fd)
int chain_handler(kis_packet *in_pack)
GlobalRegistry * globalreg
Definition: tracker_bluetooth.h:64
time_t first_time
Definition: tracker_bluetooth.h:47
mac_addr bd_addr
Definition: tracker_bluetooth.h:43
map< uint32_t, bluetooth_network * > tracked_nets
Definition: tracker_bluetooth.h:68
time_t last_time
Definition: tracker_bluetooth.h:47
kis_gps_data gpsdata
Definition: tracker_bluetooth.h:49
Definition: tracker_bluetooth.h:54
Tracker_Bluetooth()
Definition: tracker_bluetooth.h:56
int dirty
Definition: tracker_bluetooth.h:51
Definition: tracker_bluetooth.h:32
map< uint32_t, bluetooth_network * > first_nets
Definition: tracker_bluetooth.h:66
bluetooth_network()
Definition: tracker_bluetooth.h:34
int BTBBDEV_ref
Definition: tracker_bluetooth.h:70
uint32_t lap
Definition: tracker_bluetooth.h:41
int timer_ref
Definition: tracker_bluetooth.h:71
int num_packets
Definition: tracker_bluetooth.h:45