blob: 29480eb21f587edb32f7910dd06f39d03c0262e7 [file] [log] [blame]
John Park398c74a2018-10-20 21:17:39 -07001#ifndef AOS_INIT_H_
2#define AOS_INIT_H_
brians343bc112013-02-10 01:53:46 +00003
4namespace aos {
5
Austin Schuh094d09b2020-11-20 23:26:52 -08006// Initializes AOS.
Alex Perrycb7da4b2019-08-28 19:35:56 -07007void InitGoogle(int *argc, char ***argv);
8
Austin Schuh094d09b2020-11-20 23:26:52 -08009// Returns true if we have been initialized. This is mostly here so
10// ShmEventLoop can confirm the world was initialized before running.
11bool IsInitialized();
Brian Silvermane4d8b282015-12-24 13:44:48 -080012
Brian Silvermane4c79ce2022-08-15 05:57:28 -070013// 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.
16void InitFromRust(const char *argv0);
17
brians343bc112013-02-10 01:53:46 +000018} // namespace aos
19
John Park398c74a2018-10-20 21:17:39 -070020#endif // AOS_INIT_H_