diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-03-07 14:41:30 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-03-07 14:41:30 +0100 |
commit | 8507877c6dba1cca27268dc4e8079b4a96da51a9 (patch) | |
tree | b64b7336a830478e739fb37d5b9254d5b83cc43d /include | |
parent | 0d0f2ab21d3d26bc8a5d04a4b7a717763382e855 (diff) | |
download | hardware_ril_samsung-ril-8507877c6dba1cca27268dc4e8079b4a96da51a9.zip hardware_ril_samsung-ril-8507877c6dba1cca27268dc4e8079b4a96da51a9.tar.gz hardware_ril_samsung-ril-8507877c6dba1cca27268dc4e8079b4a96da51a9.tar.bz2 |
SRS: srs-client library, proper structures for protocol data
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include')
-rw-r--r-- | include/samsung-ril-socket.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/include/samsung-ril-socket.h b/include/samsung-ril-socket.h index c7b5e0d..59be2f2 100644 --- a/include/samsung-ril-socket.h +++ b/include/samsung-ril-socket.h @@ -40,6 +40,19 @@ #define SRS_CONTROL_CAFFE 0xCAFFE +struct srs_header { + unsigned int length; + unsigned char group; + unsigned char index; +} __attribute__((__packed__)); + +struct srs_message { + unsigned short command; + int length; + void *data; +}; + + enum srs_snd_type { SRS_SND_TYPE_VOICE, SRS_SND_TYPE_SPEAKER, @@ -66,16 +79,16 @@ struct srs_snd_call_volume { int volume; } __attribute__((__packed__)); -struct srs_header { - unsigned int length; - unsigned char group; - unsigned char index; +struct srs_snd_call_audio_path { + enum srs_snd_path path; } __attribute__((__packed__)); -struct srs_message { - unsigned short command; - int data_len; - void *data; +struct srs_snd_call_clock_sync { + unsigned char sync; +} __attribute__((__packed__)); + +struct srs_control_ping { + int caffe; } __attribute__((__packed__)); #endif |