Skip to content

Commit

Permalink
Add support for Bluez v5.75 (#21)
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
Mausy5043 authored Apr 27, 2024
2 parents 117dd15 + f5a2ca9 commit a310f27
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 3 deletions.
144 changes: 144 additions & 0 deletions bluepy3/config/config.5.75.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* file inserted by bluepy3 helpermaker */

/* Directory for the Android daemon storage files */
#define ANDROID_STORAGEDIR "/var/lib/bluetooth/android"

/* Directory for the configuration files */
#define CONFIGDIR "/usr/local/etc/bluetooth"

/* Define to 1 if you have the backtrace support. */
/* #undef HAVE_BACKTRACE_SUPPORT */

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define to 1 if you have the <linux/if_alg.h> header file. */
#define HAVE_LINUX_IF_ALG_H 1

/* Define to 1 if you have the <linux/types.h> header file. */
#define HAVE_LINUX_TYPES_H 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the <readline/readline.h> header file. */
#define HAVE_READLINE_READLINE_H 1

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the udev_hwdb_new() function. */
#define HAVE_UDEV_HWDB_NEW 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
/* #undef HAVE_VALGRIND_MEMCHECK_H */

/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"

/* Define if threading support is required */
/* #undef NEED_THREADS */

/* Name of package */
#define PACKAGE "bluez"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""

/* Define to the full name of this package. */
#define PACKAGE_NAME "bluez"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "bluez 5.75"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "bluez"

/* Define to the home page for this package. */
#define PACKAGE_URL ""

/* Define to the version of this package. */
#define PACKAGE_VERSION "5.75"

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Directory for the storage files */
#define STORAGEDIR "/var/lib/bluetooth"

/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
#endif

/* Enable GNU extensions on systems that have them. */
/* Extensions are enabled in each individual source file
ref: https://github.com/bluez/bluez/commit/261948090e9073514ac4b5f64c8715cf0a71eafa
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
*/
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# define _TANDEM_SOURCE 1
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif


/* Version number of package */
#define VERSION "5.75"

/* Define to 1 if on MINIX. */
/* #undef _MINIX */

/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
/* #undef _POSIX_1_SOURCE */

/* Define to 1 if you need to in order for `stat' and other things to work. */
/* #undef _POSIX_SOURCE */

/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
#define restrict __restrict
/* Work around a bug in Sun C++: it does not support _Restrict or
__restrict__, even though the corresponding Sun C compiler ends up with
"#define restrict _Restrict" or "#define restrict __restrict__" in the
previous line. Perhaps some future version of Sun C++ will work with
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
#if defined __SUNPRO_CC && !defined __RESTRICT
# define _Restrict
# define __restrict__
#endif
2 changes: 1 addition & 1 deletion mkbld
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ build_app(){
echo
echo "Building..."
rm -r dist/*
rm -r *.egg-info
rm -r ./*.egg-info
python3 -m build --outdir ./dist --sdist
}

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ build-backend = "hatchling.build"

[project]
name = "bluepy3"
version = "2.4.2" # latest/current distribution version
# version = "2.3.4" # latest test version
# version = "2.4.2" # latest/current distribution version
version = "2.5.1" # latest test version
description = "A Python3 module for interfacing with Bluetooth LE devices on Linux."
readme = "README.md"
requires-python = ">=3.8"
Expand Down

0 comments on commit a310f27

Please sign in to comment.