diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-10-02 16:22:02 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-10-11 13:33:02 +0900 |
commit | ce253994af37137d4c29221e7914f437c3dcb510 (patch) | |
tree | 3beed005e974e45d008089ffe67c9793c8bb1ee4 /src/sm-error.h | |
parent | e483fae4992307f34b6a9926bfba8b2e0568ebe3 (diff) |
Add agl-service-soundmanager-2017
Add a new binding agl-service-soundmanager-2017. A image about this see JIRA SPEC-916
Packaging via cmake
[PatchSet3]
Pass to afb-binding version 2
Fix typo
Fix libsoundmanager bug
[PatchSet4]
Modified commit message
[PatchSet5]
Re-add root CMakeLists.txt
Prevent memory leak of json object
Bug-AGL: SPEC-926
Change-Id: I24c0280210777778c379ac7027f3d71fa28d6d85
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/sm-error.h')
-rw-r--r-- | src/sm-error.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/sm-error.h b/src/sm-error.h new file mode 100644 index 0000000..a963d47 --- /dev/null +++ b/src/sm-error.h @@ -0,0 +1,52 @@ +#ifndef SM_ERROR_H +#define SM_ERROR_H + +char* get_response_audiomanager_massage_error(int am_error_code) +{ + switch (am_error_code){ + case 0: + return "OK"; + case 1: + return "unknown error"; + case 2: + return "value out of range"; + case 3: + return "not used"; + case 4: + return "database error occured"; + case 5: + return "the desired object already exists"; + case 6: + return "there is no change"; + case 7: + return "the desired action is not possible"; + case 8: + return "the desired object is non existent"; + case 9: + return "the asynchronous action was aborted"; + case 10: + return "connectionFormat is not selected"; + case 11: + return "communication error"; + case 100: + return "desired event doesn't exist"; + default: + return "Audio Manager responsed unknown error number"; + } +} + +char* get_source_state_key(int am_source_state){ + switch (am_source_state){ + case 0: + return "unknown"; + case 1: + return "on"; + case 2: + return "off"; + case 3: + return "paused"; + default: + return ""; + } +} +#endif |