diff options
author | Michael Ryleev <gmar@google.com> | 2016-03-08 15:16:11 -0800 |
---|---|---|
committer | Michael Ryleev <gmar@google.com> | 2016-05-02 15:12:01 -0700 |
commit | f59560df2cf5eafa22ec200849e13a5937bc752f (patch) | |
tree | 1674e4c83d8029fc0930765616356fd9ac647732 /trusty/storage/proxy/ipc.h | |
parent | 117b1307d95bc1b7caee0df3b8861292f365ddae (diff) | |
download | system_core-f59560df2cf5eafa22ec200849e13a5937bc752f.tar.gz system_core-f59560df2cf5eafa22ec200849e13a5937bc752f.tar.bz2 system_core-f59560df2cf5eafa22ec200849e13a5937bc752f.zip |
trusty: storage: implement storage proxy daemon
Change-Id: I80cdf61e5ced00dd32a3e35eb81969d25b624df9
Diffstat (limited to 'trusty/storage/proxy/ipc.h')
-rw-r--r-- | trusty/storage/proxy/ipc.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/trusty/storage/proxy/ipc.h b/trusty/storage/proxy/ipc.h new file mode 100644 index 000000000..2e366bbb9 --- /dev/null +++ b/trusty/storage/proxy/ipc.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * 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. + */ +#pragma once + +#include <stdint.h> +#include <trusty/interface/storage.h> + +int ipc_connect(const char *device, const char *service_name); +void ipc_disconnect(void); +ssize_t ipc_get_msg(struct storage_msg *msg, void *req_buf, size_t req_buf_len); +int ipc_respond(struct storage_msg *msg, void *out, size_t out_size); |