diff --git a/include/libdivecomputer/Makefile.am b/include/libdivecomputer/Makefile.am index e972153..d7c8379 100644 --- a/include/libdivecomputer/Makefile.am +++ b/include/libdivecomputer/Makefile.am @@ -9,6 +9,7 @@ libdivecomputer_HEADERS = \ iostream.h \ serial.h \ bluetooth.h \ + ble.h \ irda.h \ usbhid.h \ custom.h \ diff --git a/include/libdivecomputer/ble.h b/include/libdivecomputer/ble.h new file mode 100644 index 0000000..1452873 --- /dev/null +++ b/include/libdivecomputer/ble.h @@ -0,0 +1,39 @@ +/* + * libdivecomputer + * + * Copyright (C) 2019 Jef Driesen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + +#ifndef DC_BLE_H +#define DC_BLE_H + +#include "ioctl.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * Get the remote device name. + */ +#define DC_IOCTL_BLE_GET_NAME DC_IOCTL_IOR('b', 0, DC_IOCTL_SIZE_VARIABLE) + +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* DC_BLE_H */