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)14pub(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<()>18pub(crate) fn product_child_setup(_attrs: &ProductAttributes) -> anyhow::Result<()> { 19 Ok(()) 20 } 21