summaryrefslogtreecommitdiffstats
path: root/core/jni/android_os_Parcel.h
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-03-06 18:26:19 -0800
committerJeff Sharkey <jsharkey@android.com>2012-03-08 16:06:30 -0800
commitd84e1ce0b535128f03416145554fb405f9fade3e (patch)
tree545922d1256d7b320dd07b236955a902320f9d9c /core/jni/android_os_Parcel.h
parent21b4d6b7a5959b567355aae032bd76500c148e54 (diff)
downloadframeworks_base-d84e1ce0b535128f03416145554fb405f9fade3e.zip
frameworks_base-d84e1ce0b535128f03416145554fb405f9fade3e.tar.gz
frameworks_base-d84e1ce0b535128f03416145554fb405f9fade3e.tar.bz2
Split Parcel JNI details away from Binder.
This is purely a refactoring, with no change to the underlying functionality. Change-Id: I41b59f14e57d1cc144274a01f77658d99a1bfe02
Diffstat (limited to 'core/jni/android_os_Parcel.h')
-rw-r--r--core/jni/android_os_Parcel.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/jni/android_os_Parcel.h b/core/jni/android_os_Parcel.h
new file mode 100644
index 0000000..65f3819
--- /dev/null
+++ b/core/jni/android_os_Parcel.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2012 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.
+ */
+
+#include <binder/IBinder.h>
+
+#include "jni.h"
+
+namespace android {
+
+// Conversion from Java Parcel Object to C++ Parcel instance.
+// Note: does not type checking; must guarantee jobject is a Java Parcel
+extern Parcel* parcelForJavaObject(JNIEnv* env, jobject obj);
+
+}