Index: ppapi/native_client/src/trusted/plugin/srpc_client.h |
diff --git a/ppapi/native_client/src/trusted/plugin/srpc_client.h b/ppapi/native_client/src/trusted/plugin/srpc_client.h |
index 376e3ad6e58ee5ef682f2b185ce046828dd4cc6f..072c263a19cf0b35a02265238b2f49ebf7dae206 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 |