Hi On Sun, Jan 27, 2019 at 4:17 AM Samuel Thibault <samuel.thiba...@gnu.org> wrote: > > Applied too, but > > Marc-André Lureau, le jeu. 17 janv. 2019 15:43:37 +0400, a ecrit: > > + /* Create a new timer with the given callback and opaque data */ > > + void *(*timer_new)(SlirpTimerCb cb, void *opaque); > > + /* Remove and free a timer */ > > + void (*timer_free)(void *timer); > > + /* Modify a timer to expire at @expire_time */ > > + void (*timer_mod)(void *timer, int64_t expire_time); > > I'd say we will want to make the API use an opaque type for timers, for > typechecking.
You mean declaring a typedef struct SlirpTimer in libslirp.h? I am not sure it's a good idea, since the type is defined by the API client, it's an opaque type for the library. thanks > > Samuel > -- Marc-André Lureau