Skip to content

Commit

Permalink
module_adapter: add forward declarations for comp_dev/timestamp_data
Browse files Browse the repository at this point in the history
Commit 9cc6454 ("module_adapter: Extend the module interface for
endpoint devices") added use of struct comp_dev and struct
timestamp_data to module_interface.h without required include header
and/or forward declarations. This leads to compiler warnings. Address
the issue by adding forward declarations for these structs as
implementation details are not needed in this header.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i committed Jul 14, 2023
1 parent 7027228 commit 1154dba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ struct output_stream_buffer {
uint32_t size; /* size of data in the buffer */
};

struct comp_dev;
struct timestamp_data;

/**
* \struct module_endpoint_ops
* \brief Ops relevant only for the endpoint devices such as the host copier or DAI copier.
Expand Down

0 comments on commit 1154dba

Please sign in to comment.