Add utility function for appending channel to a config

This is helpful for certain log-replay tasks.

Change-Id: I46da77a0481ab1f7d61f7e9eb3ce8fe553e6c7ae
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/configuration.h b/aos/configuration.h
index 4d84b23..0e5ef74 100644
--- a/aos/configuration.h
+++ b/aos/configuration.h
@@ -227,6 +227,15 @@
 GetSchemaDetachedBuffer(const Configuration *config,
                         std::string_view schema_type);
 
+// Adds the specified channel to the config and returns the new, merged, config.
+// The channel name is derived from the specified name, the type and schema from
+// the provided schema, the source node from the specified node, and all other
+// fields (e.g., frequency) will be derived from the overrides parameter.
+aos::FlatbufferDetachedBuffer<Configuration> AddChannelToConfiguration(
+    const Configuration *config, std::string_view name,
+    aos::FlatbufferVector<reflection::Schema> schema,
+    const aos::Node *source_node = nullptr, ChannelT overrides = {});
+
 }  // namespace configuration
 
 // Compare and equality operators for Channel.  Note: these only check the name