aboutsummaryrefslogtreecommitdiffstats
path: root/src/sm-def.h
blob: ce25b5e6d371839eddbf36ef00dc2655e0f49d9c (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef SOUNDMANAGER_DEFINE_H
#define SOUNDMANAGER_DEFINE_H

#define AM_NAME "org.genivi.audiomanager"
#define AM_CMD_PATH     "/org/genivi/audiomanager/commandinterface"
#define AM_ROUTE_PATH   "/org/genivi/audiomanager/routinginterface"
#define SOUND_MANAGER_RETURN_INTERFACE   "org.genivi.audiomanager.routing.soundmanager"
#define SOUND_MANAGER_BUS_NAME "org.genivi.audiomanager.routing.soundmanager"
#define SOUND_MANAGER_PATH "/org/genivi/audiomanager/routing/soundmanager"

#define COMMAND_EVENT_NUM 10
#define ROUTING_EVENT_NUM 10
#define DEFAULT_SINK 1
#define DEFAULT_SOURCE_CLASS_ID 101
#define DYNAMIC_DOMAIN_ID 100
#define DEFAULT_DOMAIN_ID 0
#define DYNAMIC_SOURCE_ID 0
#define DEFAULT_VOLUME 100
#define DEFAULT_AVAILABLES 1
#define DEFAULT_CONNECTION_FORMAT 2
#define DEFAULT_INTERRUPT 0
#define DEFAULT_SOURCE_STATE 2
#define DS_CONTROLLED 1

#define EVENT_SUBSCRIBE_ERROR_CODE 100

#define KEY_SOURCE_ID "sourceID"
#define KEY_SINK_ID "sinkID"
#define KEY_SINK_NAME "sinkName"
#define KEY_MAIN_CONNECTION_ID "mainConnectionID"
#define KEY_DELAY "delay"
#define KEY_CONNECTION_STATE "connectionState"
#define KEY_CONNECTION_ID "connectionID"
#define KEY_VOLUME "volume"
#define KEY_VOLUME_STEP "volumeStep"
#define KEY_INTERRUPT "interrupt"
#define KEY_MUTE_STATE "muteState"

#define KEY_DOMAIN_ID "domainID"
#define KEY_HANDLE "handle"
#define KEY_APPNAME "appname"
#define KEY_RAMP "ramp"
#define KEY_TIME "time"
#define KEY_SOURCE_STATE "sourceState"
#define KEY_SOURCE_CLASS_ID "sourceClassID"
#define KEY_SINK_CLASS_ID "sinkClassID"
#define KEY_ERROR "error"
#define KEY_SINK_DATA "sinkData"
#define KEY_SOURCE_DATA "sourceData"
#define KEY_INTERRUPT_STATE "interruptState"
#define KEY_AVAILABILITY "availability"
#define KEY_AVAILABILITY_REASON "availabilityReason"
#define KEY_LIST_VOLUMES "listVolumes"
#define KEY_PAYLOAD "payload"
#define KEY_CONNECTION_FORMAT "connectionFormat"
#define KEY_EVENT "event"

#define KEY_RESPONSE "response"

#ifdef  ENABLE_AGL_AHL
#define KEY_AHL_AUDIO_ROLE "audio_role"
#define KEY_AHL_ENDPOINT_ID "endpoint_id"
#define KEY_AHL_ENDPOINT_TYPE "endpoint_type"

typedef enum {
  ENDPOINT_SINK,
  ENDPOINT_SOURCE,
} EndPointType;
#endif

#define MAX_LENGTH_STR 256

#endif // SOUNDMANAGER_DEFINE_H