summaryrefslogtreecommitdiff
path: root/src/hsd-profile.h
blob: c2baa95342ed846996cb72790050d846d008b7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (C) 2014 Wim Taymans <wim.taymans@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

typedef enum
{
  HSD_PROFILE_ID_INVALID,
  HSD_PROFILE_ID_HSP_AG,
  HSD_PROFILE_ID_HFP_AG,

  HSD_PROFILE_ID_LAST = HSD_PROFILE_ID_HFP_AG
} HsdProfileId;

#define HSD_PROFILE_HSP_AG_NAME      "hsp_ag"
#define HSD_PROFILE_HSP_AG_UUID      "00001112-0000-1000-8000-00805f9b34fb"

#define HSD_PROFILE_HFP_AG_NAME      "hfp_ag"
#define HSD_PROFILE_HFP_AG_UUID      "0000111f-0000-1000-8000-00805f9b34fb"

struct _HsdProfile {
  HsdManager *manager;

  gchar *uuid;

  gchar *path;
  guint id;

  GHashTable *objs;
};

HsdProfile *          hsd_profile_new        (HsdManager *manager, HsdProfileId id, GError **error);
void                  hsd_profile_free       (HsdProfile *profile);