Calling C function from dynamically loaded library
Hi all - I have a dynamically loaded library and I wish some function in it to it to call a function in the parent (DL loading) code. I am tempted to pass the pointer to the required function to the DL and use this, but seeing they are using different address spaces is this safe? My other idea was to use some form of IPC (probably pipes) to do it, but this requires some layer of abstraction plumbed in.
Has anyone got any advice on how to achieve this?