summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client/src/trusted/plugin/srpc_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/native_client/src/trusted/plugin/srpc_client.h')
-rw-r--r--ppapi/native_client/src/trusted/plugin/srpc_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ppapi/native_client/src/trusted/plugin/srpc_client.h b/ppapi/native_client/src/trusted/plugin/srpc_client.h
index 376e3ad..072c263 100644
--- a/ppapi/native_client/src/trusted/plugin/srpc_client.h
+++ b/ppapi/native_client/src/trusted/plugin/srpc_client.h
@@ -45,6 +45,8 @@ class SrpcClient {
bool HasMethod(const nacl::string& method_name);
// Invoke an SRPC method.
bool Invoke(const nacl::string& method_name, SrpcParams* params);
+ // Get the error status from that last method invocation
+ NaClSrpcError GetLastError() { return last_error_; }
bool InitParams(const nacl::string& method_name, SrpcParams* params);
// Attach a service for reverse-direction (from .nexe) RPCs.
@@ -58,6 +60,7 @@ class SrpcClient {
Methods methods_;
NaClSrpcChannel srpc_channel_;
bool srpc_channel_initialised_;
+ NaClSrpcError last_error_;
};
} // namespace plugin