glib-helper.h revision ec96a4be11db022bd8d2b403beb7ca245c5d1ebc
1fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville/*
2fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
3fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  BlueZ - Bluetooth protocol stack for Linux
4fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
5fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  Copyright (C) 2004-2008  Marcel Holtmann <marcel@holtmann.org>
6fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
7fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
8fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  This program is free software; you can redistribute it and/or modify
9fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  it under the terms of the GNU General Public License as published by
10fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  the Free Software Foundation; either version 2 of the License, or
11fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  (at your option) any later version.
12fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
13fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  This program is distributed in the hope that it will be useful,
14fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  GNU General Public License for more details.
17fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
18fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  You should have received a copy of the GNU General Public License
19fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  along with this program; if not, write to the Free Software
20fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville *
22fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville */
23fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
24fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilletypedef void (*bt_io_callback_t) (GIOChannel *io, int err, gpointer user_data);
25fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilletypedef void (*bt_callback_t) (gpointer user_data, sdp_list_t *recs, int err);
26fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilletypedef void (*bt_destroy_t) (gpointer user_data);
27fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
28fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint bt_discover_services(const bdaddr_t *src, const bdaddr_t *dst,
29fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville		bt_callback_t cb, void *user_data, bt_destroy_t destroy);
30fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
31fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint bt_search_service(const bdaddr_t *src, const bdaddr_t *dst,
32fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville			uuid_t uuid, bt_callback_t cb, void *user_data,
33fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville			bt_destroy_t destroy);
34fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
35fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillegchar *bt_uuid2string(uuid_t *uuid);
36fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillegchar *bt_list2string(GSList *list);
37fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleGSList *bt_string2list(const gchar *str);
38fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
39fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint bt_rfcomm_connect(const bdaddr_t *src, const bdaddr_t *dst,
40fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville			sdp_record_t *record, bt_io_callback_t cb,
41fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville			void *user_data);
42fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville