2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-04-12 01:46:58 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#ifndef SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
|
|
|
#define SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
2013-04-12 01:46:58 +00:00
|
|
|
|
2016-03-08 14:28:53 +00:00
|
|
|
#include "build/build_config.h"
|
2018-10-01 20:00:53 +00:00
|
|
|
#include "electron/buildflags/buildflags.h"
|
2013-07-01 14:21:31 +00:00
|
|
|
|
|
|
|
#if defined(OS_MACOSX)
|
2013-04-12 01:46:58 +00:00
|
|
|
extern "C" {
|
2020-02-04 20:19:40 +00:00
|
|
|
__attribute__((visibility("default"))) int ElectronMain(int argc, char* argv[]);
|
2015-01-16 23:54:38 +00:00
|
|
|
|
2018-10-01 20:00:53 +00:00
|
|
|
#if BUILDFLAG(ENABLE_RUN_AS_NODE)
|
2020-02-04 20:19:40 +00:00
|
|
|
__attribute__((visibility("default"))) int ElectronInitializeICUandStartNode(
|
2018-04-18 01:44:10 +00:00
|
|
|
int argc,
|
|
|
|
char* argv[]);
|
2018-03-09 09:51:09 +00:00
|
|
|
#endif
|
2013-04-12 01:46:58 +00:00
|
|
|
}
|
2013-07-01 14:21:31 +00:00
|
|
|
#endif // OS_MACOSX
|
2013-04-12 01:46:58 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#endif // SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|