diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-03-28 21:03:23 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-16 18:38:27 +0900 |
commit | cbf280b545bbb3a879c55913564796f944b217c4 (patch) | |
tree | 0fa8345f5d396bca5d4049783fb914d1bb527880 /src/sm-def.h | |
parent | 975d5e70b89481c90df30365c660b3f5043c3150 (diff) |
Clean: divide soundmanager.c into interface part and proxy part
* interface part ... soundmanager
This receives request and send event to clients
* proxy part ... am_proxy_audiomanager
This is the proxy to call and receive audiomanager API
Change-Id: If29643ba3356ec1d7ec87468b023cf8809aa4eb3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/sm-def.h')
-rw-r--r-- | src/sm-def.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/sm-def.h b/src/sm-def.h index ce25b5e..0bab88d 100644 --- a/src/sm-def.h +++ b/src/sm-def.h @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2017 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #ifndef SOUNDMANAGER_DEFINE_H #define SOUNDMANAGER_DEFINE_H @@ -61,6 +76,7 @@ #define KEY_AHL_AUDIO_ROLE "audio_role" #define KEY_AHL_ENDPOINT_ID "endpoint_id" #define KEY_AHL_ENDPOINT_TYPE "endpoint_type" +#define KEY_AHL_REP_STREAM_ID "stream_id" typedef enum { ENDPOINT_SINK, @@ -68,6 +84,31 @@ typedef enum { } EndPointType; #endif +typedef enum { + NOT_INITIALIZED = -2, + UNABLE_SEND, + OK = 0, + UNKNOWN, + OUT_RANGE, + NOT_USED, + DATABASE_ERR, + OBJECT_ALREADY_EXIST, + NO_CHANGE, + ACTION_IMPOSSIBLE, + OBJECT_NOT_EXIST, + ASYNC_ACTION_ABORTED, + CONNECTION_FORMAT_ERR, + COMMUNICATION_ERR, + EVENT_NOT_EXIST = 100 +} ErrorCode; + +typedef enum { + REQ_FAIL, + OUT_OF_RANGE, + NOT_NUMBER, + REQ_OK +} REQ_ERROR; + #define MAX_LENGTH_STR 256 #endif // SOUNDMANAGER_DEFINE_H
\ No newline at end of file |