1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "nacl_bindings/monacl_sel_main.h"
7 #include "nacl_bindings/mojo_syscall.h"
8 #include "native_client/src/public/chrome_main.h"
9 #include "native_client/src/public/nacl_app.h"
13 int LaunchNaCl(NaClDesc
* nexe_desc
,
20 struct NaClChromeMainArgs
* args
= NaClChromeMainArgsCreate();
21 args
->nexe_desc
= nexe_desc
;
22 args
->irt_desc
= irt_desc
;
24 args
->argc
= app_argc
;
25 args
->argv
= app_argv
;
27 struct NaClApp
* nap
= NaClAppCreate();
28 InjectMojo(nap
, handle
);
31 NaClChromeMainStart(nap
, args
, &exit_status
);
35 void NaClExit(int code
) {