bluetooth_packet.c (8f3e7eea1eae731e517c4fd7ac22f1ce3ad3cd5f) bluetooth_packet.c (7469b4d151d90e9053add0650f258acd6b481f45)
1/* -*- c -*- */
2/*
3 * Copyright 2007 - 2013 Dominic Spill, Michael Ossmann, Will Code
4 *
5 * This file is part of libbtbb
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 252 unchanged lines hidden (view full) ---

261static uint8_t count_bits(uint64_t n)
262{
263 uint8_t i = 0;
264 for (i = 0; n != 0; i++)
265 n &= n - 1;
266 return i;
267}
268
1/* -*- c -*- */
2/*
3 * Copyright 2007 - 2013 Dominic Spill, Michael Ossmann, Will Code
4 *
5 * This file is part of libbtbb
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 252 unchanged lines hidden (view full) ---

261static uint8_t count_bits(uint64_t n)
262{
263 uint8_t i = 0;
264 for (i = 0; n != 0; i++)
265 n &= n - 1;
266 return i;
267}
268
269#ifndef RELEASE
270#define RELEASE "unknown"
271#endif
272char *btbb_get_release(void) {
273 return RELEASE;
274}
275
276#ifndef VERSION
277#define VERSION "unknown"
278#endif
279char *btbb_get_version(void) {
280 return VERSION;
281}
282
269int btbb_init(int max_ac_errors)
270{
271 /* Sanity check max_ac_errors. */
272 if ( (max_ac_errors < 0) || (max_ac_errors > AC_ERROR_LIMIT) ) {
273 fprintf(stderr, "%s: max_ac_errors out of range\n",
274 __FUNCTION__);
275 return -1;
276 }

--- 1095 unchanged lines hidden ---
283int btbb_init(int max_ac_errors)
284{
285 /* Sanity check max_ac_errors. */
286 if ( (max_ac_errors < 0) || (max_ac_errors > AC_ERROR_LIMIT) ) {
287 fprintf(stderr, "%s: max_ac_errors out of range\n",
288 __FUNCTION__);
289 return -1;
290 }

--- 1095 unchanged lines hidden ---