John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 1 | #ifndef AOS_INIT_H_ |
| 2 | #define AOS_INIT_H_ |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 3 | |
| 4 | namespace aos { |
| 5 | |
Austin Schuh | 094d09b | 2020-11-20 23:26:52 -0800 | [diff] [blame] | 6 | // Initializes AOS. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 7 | void InitGoogle(int *argc, char ***argv); |
| 8 | |
Austin Schuh | 094d09b | 2020-11-20 23:26:52 -0800 | [diff] [blame] | 9 | // Returns true if we have been initialized. This is mostly here so |
| 10 | // ShmEventLoop can confirm the world was initialized before running. |
| 11 | bool IsInitialized(); |
Brian Silverman | e4d8b28 | 2015-12-24 13:44:48 -0800 | [diff] [blame] | 12 | |
Brian Silverman | e4c79ce | 2022-08-15 05:57:28 -0700 | [diff] [blame^] | 13 | // A special initialization function that initializes the C++ parts in a way |
| 14 | // compatible with Rust. This requires careful coordination with `:init_rs`, do |
| 15 | // not use it from anywhere else. |
| 16 | void InitFromRust(const char *argv0); |
| 17 | |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 18 | } // namespace aos |
| 19 | |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 20 | #endif // AOS_INIT_H_ |