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