| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERSAL_RPC_UNIVERSAL_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERSAL_RPC_UNIVERSAL_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERSAL_RPC_UNIVERSAL_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERSAL_RPC_UNIVERSAL_H_ |
| 9 | 9 |
| 10 #include "native_client/src/shared/srpc/nacl_srpc.h" | 10 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 static bool HandleShowVariables(NaClCommandLoop* ncl, | 53 static bool HandleShowVariables(NaClCommandLoop* ncl, |
| 54 const vector<string>& args); | 54 const vector<string>& args); |
| 55 static bool HandleSetVariable(NaClCommandLoop* ncl, | 55 static bool HandleSetVariable(NaClCommandLoop* ncl, |
| 56 const vector<string>& args); | 56 const vector<string>& args); |
| 57 static bool HandleInstallUpcalls(NaClCommandLoop* ncl, | 57 static bool HandleInstallUpcalls(NaClCommandLoop* ncl, |
| 58 const vector<string>& args); | 58 const vector<string>& args); |
| 59 static bool HandleNondeterministic(NaClCommandLoop* ncl, | 59 static bool HandleNondeterministic(NaClCommandLoop* ncl, |
| 60 const vector<string>& args); | 60 const vector<string>& args); |
| 61 static bool HandleEcho(NaClCommandLoop* ncl, | 61 static bool HandleEcho(NaClCommandLoop* ncl, |
| 62 const vector<string>& args); | 62 const vector<string>& args); |
| 63 static bool HandleShutdown(NaClCommandLoop* nacl, |
| 64 const vector<string>& args); |
| 63 | 65 |
| 64 int desc_count_; | 66 int desc_count_; |
| 65 NaClSrpcService* service_; | 67 NaClSrpcService* service_; |
| 66 NaClSrpcChannel* channel_; | 68 NaClSrpcChannel* channel_; |
| 67 | 69 |
| 68 // map names to content | 70 // map names to content |
| 69 map<string, string> vars_; | 71 map<string, string> vars_; |
| 70 // map non-determinisic content into deterministic names | 72 // map non-determinisic content into deterministic names |
| 71 map<string, string> nondeterministic_; | 73 map<string, string> nondeterministic_; |
| 72 // map names to descriptors | 74 // map names to descriptors |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 bool HandlerMap(NaClCommandLoop* ncl, const vector<string>& args); | 89 bool HandlerMap(NaClCommandLoop* ncl, const vector<string>& args); |
| 88 bool HandlerSaveToFile(NaClCommandLoop* ncl, const vector<string>& args); | 90 bool HandlerSaveToFile(NaClCommandLoop* ncl, const vector<string>& args); |
| 89 bool HandlerLoadFromFile(NaClCommandLoop* ncl, const vector<string>& args); | 91 bool HandlerLoadFromFile(NaClCommandLoop* ncl, const vector<string>& args); |
| 90 bool HandlerFileSize(NaClCommandLoop* ncl, const vector<string>& args); | 92 bool HandlerFileSize(NaClCommandLoop* ncl, const vector<string>& args); |
| 91 bool HandlerSyncSocketCreate(NaClCommandLoop* ncl, | 93 bool HandlerSyncSocketCreate(NaClCommandLoop* ncl, |
| 92 const vector<string>& args); | 94 const vector<string>& args); |
| 93 bool HandlerSyncSocketWrite(NaClCommandLoop* ncl, | 95 bool HandlerSyncSocketWrite(NaClCommandLoop* ncl, |
| 94 const vector<string>& args); | 96 const vector<string>& args); |
| 95 | 97 |
| 96 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERSAL_RPC_UNIVERSAL_H_ */ | 98 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERSAL_RPC_UNIVERSAL_H_ */ |
| OLD | NEW |