summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-07-15 23:05:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-07-15 23:05:35 -0700
commit721c4162c3ad46d55ac09bf68f5922bb683d36f7 (patch)
treea3023fa114cd510d3139752cde94cd415ffdafab /include/binder
parentba57d1b9a512a56eaaed3b95b8144d0a25f2b01b (diff)
parent7f7fa79c4e373f58439e3bf34278364607dffb05 (diff)
downloadframeworks_native-721c4162c3ad46d55ac09bf68f5922bb683d36f7.zip
frameworks_native-721c4162c3ad46d55ac09bf68f5922bb683d36f7.tar.gz
frameworks_native-721c4162c3ad46d55ac09bf68f5922bb683d36f7.tar.bz2
am cc52121c: am c4b204bd: Merge "More StrictMode work, keeping Binder & BlockGuard\'s thread-locals in-sync." into gingerbread
Merge commit 'cc52121c4f88e9feb8404937bcbfff6e73084666' * commit 'cc52121c4f88e9feb8404937bcbfff6e73084666': More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/Parcel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h
index 3aba5f6..fd0fc1f 100644
--- a/include/binder/Parcel.h
+++ b/include/binder/Parcel.h
@@ -58,9 +58,13 @@ public:
// Writes the RPC header.
status_t writeInterfaceToken(const String16& interface);
+
// Parses the RPC header, returning true if the interface name
// in the header matches the expected interface from the caller.
- bool enforceInterface(const String16& interface) const;
+ // If strict_policy_out is non-NULL, the RPC header's StrictMode policy
+ // mask is returned.
+ bool enforceInterface(const String16& interface,
+ int32_t* strict_policy_out = NULL) const;
bool checkInterface(IBinder*) const;
void freeData();