Well in class we are doing what i think is called opaque programming. Meaning with code some thing and the client "customer" only recieves a head that tells him how it works. My teach said we would give a object file, but at work a guy told me it would be a dll.
So my first question would be which one would it be and how do i comile it.
Second question would be how would i then use it with the head file.
My last question would be, that in that file we use Struct type of programming and the struct is static in it. So i need to send a handle "address if the stuct" to be used with the fonctions i gave him. So he doesnt know how the Struct is so he doesnt mess with it and doesnt know how it is programmed. I tried sending address, which i can but then im unable to is it since its stored in a int. Dont know how to declare it so when i pass back the address my programme can then used it. Since the Struct it static in my .c file and i can use it in my header file that is associated with the .c file that should be comiled and not be viewed by this client.
here is an example of the header file the client would recieved with the type of compiling i dont know how to do hehehe.
typedef struct gps * t_gps;
t_gps init_gps(double x, double y, double z);
double get_MY_pos( const t_gps );
double get_distance( const t_gps, double x, double y, double z);
void set_gps( t_distributeur, double x, double y, double z );
void free_gps( t_distributeur );