GNU Radio's BLUETOOTH 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
33public:
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
55public:
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
63protected:
64 GlobalRegistry *globalreg;
65
66 map<uint32_t, bluetooth_network *> first_nets;
67
68 map<uint32_t, bluetooth_network *> tracked_nets;
69
72};
73
74#endif
GlobalRegistry * globalreg
Definition tracker_bluetooth.h:64
map< uint32_t, bluetooth_network * > first_nets
Definition tracker_bluetooth.h:66
int chain_handler(kis_packet *in_pack)
int BTBBDEV_ref
Definition tracker_bluetooth.h:70
Tracker_Bluetooth()
Definition tracker_bluetooth.h:56
void BlitDevices(int in_fd)
int timer_ref
Definition tracker_bluetooth.h:71
Tracker_Bluetooth(GlobalRegistry *in_globalreg)
map< uint32_t, bluetooth_network * > tracked_nets
Definition tracker_bluetooth.h:68
mac_addr bd_addr
Definition tracker_bluetooth.h:43
time_t first_time
Definition tracker_bluetooth.h:47
int dirty
Definition tracker_bluetooth.h:51
time_t last_time
Definition tracker_bluetooth.h:47
kis_gps_data gpsdata
Definition tracker_bluetooth.h:49
bluetooth_network()
Definition tracker_bluetooth.h:34
int num_packets
Definition tracker_bluetooth.h:45
uint32_t lap
Definition tracker_bluetooth.h:41