Thanks Robert - so I chose to avoid duplicating the existing callbacks otherwise we would have almost identical versions of each callback for both the socket and service cases which I felt was more ugly than going with the container_of() type approach and reusing the callbacks between both services.
Thanks Robert - so I chose to avoid duplicating the existing callbacks otherwise we would have almost identical versions of each callback for both the socket and service cases which I felt was more ugly than going with the container_of() type approach and reusing the callbacks between both services.
Will remove the CC prefixes though - thanks.