|
Packit Service |
fc05fa |
/*
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
* BlueZ - Bluetooth protocol stack for Linux
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
* Copyright (C) 2009-2011 Bastien Nocera <hadess@hadess.net>
|
|
Packit Service |
fc05fa |
* Copyright (C) 2010 Giovanni Campagna <scampa.giovanni@gmail.com>
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
fc05fa |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
fc05fa |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
fc05fa |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fc05fa |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fc05fa |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fc05fa |
* Lesser General Public License for more details.
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
fc05fa |
* License along with this library; if not, write to the Free Software
|
|
Packit Service |
fc05fa |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit Service |
fc05fa |
*
|
|
Packit Service |
fc05fa |
*/
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
#ifndef __BLUETOOTH_UTILS_H
|
|
Packit Service |
fc05fa |
#define __BLUETOOTH_UTILS_H
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
#include <gio/gio.h>
|
|
Packit Service |
fc05fa |
#include <bluetooth-enums.h>
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
G_BEGIN_DECLS
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
/*
|
|
Packit Service |
fc05fa |
* The profile UUID list is provided by the Bluetooth SIG:
|
|
Packit Service |
fc05fa |
* https://www.bluetooth.com/specifications/assigned-numbers/service-discovery
|
|
Packit Service |
fc05fa |
*/
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_SPP 0x1101
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_DUN 0x1103
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_IRMC 0x1104
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_OPP 0x1105
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_FTP 0x1106
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_HSP 0x1108
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_A2DP_SOURCE 0x110A
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_A2DP_SINK 0x110B
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_AVRCP_TARGET 0x110C
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_A2DP 0x110D
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_AVRCP_CONTROL 0x110E
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_HSP_AG 0x1112
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_PAN_PANU 0x1115
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_PAN_NAP 0x1116
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_PAN_GN 0x1117
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_HFP_HF 0x111E
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_HFP_AG 0x111F
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_HID 0x1124
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_SAP 0x112d
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_PBAP 0x112F
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_GENERIC_AUDIO 0x1203
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_SDP 0x1000
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_PNP 0x1200
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_GENERIC_NET 0x1201
|
|
Packit Service |
fc05fa |
#define BLUETOOTH_UUID_VDP_SOURCE 0x1303
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
BluetoothType bluetooth_class_to_type (guint32 class);
|
|
Packit Service |
fc05fa |
BluetoothType bluetooth_appearance_to_type (guint16 appearance);
|
|
Packit Service |
fc05fa |
const gchar *bluetooth_type_to_string (guint type);
|
|
Packit Service |
fc05fa |
const gchar *bluetooth_type_to_filter_string (guint type);
|
|
Packit Service |
fc05fa |
gboolean bluetooth_verify_address (const char *bdaddr);
|
|
Packit Service |
fc05fa |
const char *bluetooth_uuid_to_string (const char *uuid);
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
void bluetooth_send_to_address (const char *address,
|
|
Packit Service |
fc05fa |
const char *alias);
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
G_END_DECLS
|
|
Packit Service |
fc05fa |
|
|
Packit Service |
fc05fa |
#endif /* __BLUETOOTH_UTILS_H */
|