Skip to content
Snippets Groups Projects
Commit 732c919c authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

libqos: split I2CAdapter initialization and allocation


Provide *_init functions that populate an I2CAdapter struct without
allocating one, and make the existing *_create functions wrap them.

Because in the new setup *_create might return a pointer inside the
IMXI2C or OMAPI2C struct, create companion *_free functions to go
back to the outer pointer.

All this is temporary until allocation will be handled entirely by
qgraph.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent c4f00daa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment