Gabriel Andone(deleted)
|
Passing a pointer from the main function to the ioRead and ioDevctl functions of a ResourceManager
|
Gabriel Andone(deleted)
12/15/2020 8:49 AM
post121152
|
Passing a pointer from the main function to the ioRead and ioDevctl functions of a ResourceManager
Is it possible that, when I create the ResourceManager, to specify a pointer which the ResourceManager will provide it
further as argument to the ioRead and ioDevctl functions I registered as callbacks?
I create a pointer to some data in the main function and I would like to avoid sharing it as global/static variable to
those functions.
Thank you,
Gabriel
|
|
|