#include #include "gst_controleur_bus.h" struct cb_st { int *actif; int *entree; int *sortie; }; cb_st cb_init (int *actif, int *entree, int *sortie) { cb_st cb = (cb_st) malloc (sizeof (struct cb_st)); assert (cb != NULL); cb->actif = actif; cb->entree = entree; cb->sortie = sortie; return cb; } void cb_evalue (cb_st cb) { if (*cb->actif == 1) *cb->sortie = *cb->entree; } void cb_libere (cb_st cb) { free (cb); }