Read-only gsubtree of platform2/system_api/ code

Clone this repo:
  1. 2d79d7f vm_tools: concierge: emit VmInstallState signal upon receiving from a guest by maciek swiech · 9 weeks ago main
  2. c6a6b1b vm_tools: concierge: Introduce SuccessFailureResponse. by Junichi Uekawa · 4 weeks ago
  3. c76ed0f system_api: arc: Remove arc_file_picker experiment. by Junichi Uekawa · 6 days ago
  4. f53fbe6 Expose recovery seed by Mohammed Abdon · 9 days ago
  5. 2a48156 vm_tools: add max_dynamic_perm/xattr config for fs device by Yuan Yao · 3 months ago

This directory (platform2/system_api) contains constants and definitions like D-Bus service names that are shared between Chromium and Chromium OS.

This directory is only for things like headers and .proto files. No implementation should be added.

When writting a .proto file make sure to use:

option optimize_for = LITE_RUNTIME;

This will force usage of a lite protobuf instead of a full/heavy weight protobuf. The browser only links against the light version, so you will get cryptic link errors about missing parts of Message if you define a protobuf here and then try to use it in Chrome. Currently CrOS links against the full protobuffer library, but that might change in the future.

When declaring a protobuf, avoid use of required unless it is exactly what you mean. “Required is Forever” and very rarely should actually be used. Consult Protocol Buffer Basics: C++ for a detailed of this issue.