Blame lib/bluetooth-utils.h

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