xref: /aosp_15_r20/external/crosvm/broker_ipc/src/generic.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2022 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 //! Generic implementation of product specific functions that are called on child process
6 //! initialization.
7 
8 use serde::Deserialize;
9 use serde::Serialize;
10 
11 #[derive(Serialize, Deserialize)]
12 pub struct ProductAttributes {}
13 
init_child_crash_reporting(_attrs: &ProductAttributes)14 pub(crate) fn init_child_crash_reporting(_attrs: &ProductAttributes) {
15     // Do nothing. Crash reporting is implemented by a specific product.
16 }
17 
product_child_setup(_attrs: &ProductAttributes) -> anyhow::Result<()>18 pub(crate) fn product_child_setup(_attrs: &ProductAttributes) -> anyhow::Result<()> {
19     Ok(())
20 }
21