more bla, and more bugs
This commit is contained in:
@@ -37,6 +37,8 @@ fifo-rx: fifo-rx.c my-fifo.h dtime.o Makefile
|
||||
|
||||
#------------- PLUGIN --------------------
|
||||
|
||||
plugin: plugiciel.so appelant
|
||||
|
||||
plugiciel.so: plugiciel.c plugiciel.h Makefile
|
||||
gcc -Wall -shared -fPIC $< -o $@
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
void affichage(char *titre, float vals[4]);
|
||||
|
||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
void *handle;
|
||||
@@ -24,10 +23,9 @@ if (!handle) {
|
||||
|
||||
values[0] = 13.37; values[1] = 16.64;
|
||||
values[2] = 3.14159; values[3] = 0.5;
|
||||
|
||||
funcname("rgb * a =", values);
|
||||
|
||||
dlclose(handle);
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||
|
||||
|
||||
@@ -3,10 +3,9 @@
|
||||
#include <stdio.h>
|
||||
#include "plugiciel.h"
|
||||
|
||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||
void affichage(char *titre, float vals[4])
|
||||
{
|
||||
printf("%s : %f %f %f\n", titre,
|
||||
vals[0]*vals[3], vals[1]*vals[3], vals[2]*vals[3]);
|
||||
vals[0]*vals[3], vals[1]*vals[3],
|
||||
vals[2]*vals[3]);
|
||||
}
|
||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||
|
||||
Reference in New Issue
Block a user