| OLD | NEW |
| (Empty) | |
| 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_COMMAND_SERVICE_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_COMMAND_SERVICE_H_ |
| 9 |
| 10 #include "native_client/src/include/nacl_base.h" |
| 11 #include "native_client/src/trusted/service_runtime/sel_ldr.h" |
| 12 #include "native_client/src/trusted/simple_service/nacl_simple_service.h" |
| 13 |
| 14 EXTERN_C_BEGIN |
| 15 |
| 16 /* |
| 17 * Command channel. |
| 18 */ |
| 19 |
| 20 struct NaClCommandService { |
| 21 struct NaClSimpleService base; |
| 22 struct NaClApp *nap; |
| 23 }; |
| 24 |
| 25 int NaClCommandServiceCtor( |
| 26 struct NaClCommandService *self, |
| 27 struct NaClSrpcHandlerDesc const *srpc_handlers, |
| 28 struct NaClApp *nap); |
| 29 |
| 30 void NaClCommandServiceDtor(struct NaClRefCount *vself); |
| 31 |
| 32 extern struct NaClSimpleServiceVtbl const kNaClCommandServiceVtbl; |
| 33 |
| 34 EXTERN_C_END |
| 35 |
| 36 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_COMMAND_SERVICE_H_ */ |
| OLD | NEW |