Index: src/untrusted/init/kernel_service.h |
diff --git a/src/untrusted/init/kernel_service.h b/src/untrusted/init/kernel_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2e5ecf26888b435d4007c2d7eae78be66611c549 |
--- /dev/null |
+++ b/src/untrusted/init/kernel_service.h |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2013 The Native Client Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_INIT_KERNEL_SERVICE_H_ |
+#define NATIVE_CLIENT_SRC_UNTRUSTED_INIT_KERNEL_SERVICE_H_ |
+ |
+namespace nacl { |
+ |
+class KernelServiceClient : public SrpcClientConnection { |
+ public: |
+ KernelServiceClient() {} |
+ |
+ // Return true if successful. When successful, |*child_sockaddr| |
+ // contains the socket address to the service runtime for the newly |
+ // created subprocess, and |*app_sockaddr| contains the application |
+ // (untrusted) socket address. |
+ bool CreateProcess(int *child_sockaddr, int *app_sockaddr); |
+ |
+ ServiceRuntimeClient* ServiceRuntimeClientFactory(int child_sockaddr); |
+}; |
+ |
+} // namespace nacl |
+ |
+#endif |