Uff, i not sure that we was understand :) Here is small code example:
/******* MAIN APPLICATION *****/
// main.c
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <dlfcn.h>
#include "main.h"
void logger(const char *message)
{
fprintf(stdout, message);
return;
}
...
User Profile
Collapse
-
main app <-> module.so bi-direct access C / linux
Hi everyone!
I have some functions in main application (for example: log(), uppercase(), ...) and some in created module.so(count er() ...) But how can functions in module.so access to functions in main apllication ?
My first idea was create another module (util.so) and access module.so -> util.so. But that is nasty Too many modules ...
My next idea is send to the module.so pointers to functions which are in...
No activity results to display
Show More
Leave a comment: