summaryrefslogtreecommitdiffstats
path: root/include/ion
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2012-02-27 16:33:03 -0800
committerDima Zavin <dima@android.com>2012-02-27 16:33:03 -0800
commit830e19731dbfd5d8a2dd061f188f2ddc30443360 (patch)
tree4593b9284fa6cbc9595a4a68d57fb526b5a1de6e /include/ion
parente92b158de79d5bfe035a75ac520ddae42782bc1d (diff)
downloadsystem_core-830e19731dbfd5d8a2dd061f188f2ddc30443360.zip
system_core-830e19731dbfd5d8a2dd061f188f2ddc30443360.tar.gz
system_core-830e19731dbfd5d8a2dd061f188f2ddc30443360.tar.bz2
ion: fix header for including in C++ code
Change-Id: I8fc10ac397e60d329a6887f0590d4dba6cbc7545 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'include/ion')
-rw-r--r--include/ion/ion.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ion/ion.h b/include/ion/ion.h
index 879eab3..cafead5 100644
--- a/include/ion/ion.h
+++ b/include/ion/ion.h
@@ -18,8 +18,13 @@
* limitations under the License.
*/
+#ifndef __SYS_CORE_ION_H
+#define __SYS_CORE_ION_H
+
#include <linux/ion.h>
+__BEGIN_DECLS
+
int ion_open();
int ion_close(int fd);
int ion_alloc(int fd, size_t len, size_t align, unsigned int flags,
@@ -30,3 +35,6 @@ int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
int ion_share(int fd, struct ion_handle *handle, int *share_fd);
int ion_import(int fd, int share_fd, struct ion_handle **handle);
+__END_DECLS
+
+#endif /* __SYS_CORE_ION_H */