User Profile

Collapse

Profile Sidebar

Collapse
netdrake
netdrake
Last Activity: Jun 3 '10, 11:44 AM
Joined: Jul 23 '06
Location: Trencin,Slovakia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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;
    }

    ...
    See more | Go to post

    Leave a comment:


  • netdrake
    started a topic main app <-> module.so bi-direct access C / linux
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...