implement get_latency native command
[profile/ivi/pulseaudio.git] / src / protocol-native-spec.h
1 #ifndef fooprotocolnativespech
2 #define fooprotocolnativespech
3
4 enum {
5     PA_COMMAND_ERROR,
6     PA_COMMAND_TIMEOUT, /* pseudo command */
7     PA_COMMAND_REPLY,
8     PA_COMMAND_CREATE_PLAYBACK_STREAM,
9     PA_COMMAND_DELETE_PLAYBACK_STREAM,
10     PA_COMMAND_CREATE_RECORD_STREAM,
11     PA_COMMAND_DELETE_RECORD_STREAM,
12     PA_COMMAND_EXIT,
13     PA_COMMAND_REQUEST,
14     PA_COMMAND_AUTH,
15     PA_COMMAND_SET_NAME,
16     PA_COMMAND_LOOKUP_SINK,
17     PA_COMMAND_LOOKUP_SOURCE,
18     PA_COMMAND_DRAIN_PLAYBACK_STREAM,
19     PA_COMMAND_PLAYBACK_STREAM_KILLED,
20     PA_COMMAND_RECORD_STREAM_KILLED,
21     PA_COMMAND_STAT,
22     PA_COMMAND_GET_PLAYBACK_LATENCY,
23     PA_COMMAND_MAX
24 };
25
26 enum {
27     PA_ERROR_OK,
28     PA_ERROR_ACCESS,
29     PA_ERROR_COMMAND,
30     PA_ERROR_INVALID,
31     PA_ERROR_EXIST,
32     PA_ERROR_NOENTITY,
33     PA_ERROR_CONNECTIONREFUSED,
34     PA_ERROR_PROTOCOL,
35     PA_ERROR_TIMEOUT,
36     PA_ERROR_AUTHKEY,
37     PA_ERROR_INTERNAL,
38     PA_ERROR_CONNECTIONTERMINATED,
39     PA_ERROR_KILLED,
40     PA_ERROR_INVALIDSERVER,
41     PA_ERROR_MAX
42 };
43
44 #define PA_NATIVE_COOKIE_LENGTH 256
45 #define PA_NATIVE_COOKIE_FILE ".polypaudio-cookie"
46
47 #endif