I have a struct with a callback function, the callback function needs a pointer to the structure in order to do its operation. How do I properly define these elements such t
something like this
typedef struct _pr_PendingResponseItem_ { // some fields required for processing... int (*doAction)(struct _pr_PendingResponseItem_ *pr); } pr_PendingResponseItem;
should fix it.
(Tested & works)