| OLD | NEW |
| (Empty) |
| 1 Mojo Public C++ API | |
| 2 =================== | |
| 3 | |
| 4 This directory contains C++ language bindings for the Mojo Public API. | |
| 5 | |
| 6 A number of subdirectories provide wrappers for the lower-level C APIs (in | |
| 7 subdirectories of the same name, under mojo/public/c/). Typically, these | |
| 8 wrappers provide increased convenience and/or type-safety. | |
| 9 | |
| 10 Other subdirectories provide support (static) libraries of various sorts. In | |
| 11 this case, the organization is to have the public interface for the library | |
| 12 defined in header files in the subdirectory itself and the implementation of the | |
| 13 library at a lower level, under a lib (sub)subdirectory. A developer should be | |
| 14 able to substitute their own implementation of any such support library, and | |
| 15 expect other support libraries, which may depend on that library, to work | |
| 16 properly. | |
| 17 | |
| 18 Bindings | |
| 19 -------- | |
| 20 | |
| 21 The bindings/ subdirectory contains a support (static) library needed by the | |
| 22 code generated by the bindings generator tool (in mojo/public/tools/bindings/), | |
| 23 which translates Mojo IDL (.mojom) files into idiomatic C++ (among other | |
| 24 languages). | |
| 25 | |
| 26 This library depends on the Environment library. | |
| 27 | |
| 28 Environment | |
| 29 ----------- | |
| 30 | |
| 31 The environment/ subdirectory contains a support (static) library that | |
| 32 represents shared state needed to support the Bindings and GLES2 libraries. | |
| 33 | |
| 34 This library depends on the Utility library. | |
| 35 | |
| 36 | |
| 37 Shell | |
| 38 ----- | |
| 39 | |
| 40 The shell/ subdirectory contains a support (static) library that aids in writing | |
| 41 Mojo applications and interacting with the Shell service. | |
| 42 | |
| 43 System | |
| 44 ------ | |
| 45 | |
| 46 The system/ subdirectory contains C++ wrappers (and some additional helpers) of | |
| 47 the API defined in mojo/public/c/include/mojo/system/, which defines the basic, | |
| 48 "core" API, especially used to communicate with Mojo services. | |
| 49 | |
| 50 Test Support | |
| 51 ------------ | |
| 52 | |
| 53 The test_support/ subdirectory contains C++ test support functionality for | |
| 54 "internal" tests. It is not meant for general use by Mojo applications. | |
| 55 | |
| 56 Utility | |
| 57 ------- | |
| 58 | |
| 59 The utility/ subdirectory contains a support (static) library that provides | |
| 60 various basic functionality. Most notably, it provides an implementation of a | |
| 61 RunLoop based on MojoWaitMany() that applications may use as the basis for | |
| 62 asynchronous message processing. | |
| OLD | NEW |