blob: b9270b322dbce095c3285a993d3bd3e1e1acabf6 [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
Adam Snaider48a62f32023-10-02 15:49:23 -070013// Marks the system as initialized. This is only meant to be used from
14// init_for_rust. DO NOT call this from anywhere else, use InitGoogle
15// instead.
16void MarkInitialized();
Brian Silvermane4c79ce2022-08-15 05:57:28 -070017
brians343bc112013-02-10 01:53:46 +000018} // namespace aos
19
John Park398c74a2018-10-20 21:17:39 -070020#endif // AOS_INIT_H_