[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH] lib/ukswrand: Remove private functions from public API
Hi Simon,
When I first counter the problem, I made a simple main.c where I generated my own private number generator. And this was the result: error: ‘uk_swrand’ undeclared (first use in this function) The problem is that before link time, the generated object needs to know the uk_swrand type. I tried to change the definition of uk_swrand_init by passing a double reference to struct uk_swrand. But, the constructor for uk_swrand_def complained, and I presumed that this function should be private. A solution for this would be to put the definition of uk_swrand structure in swrand.h. Another option is to use the global random generator uk_swrand_def and reinitialize it. Thanks, Roxana N. On Fri, Jul 13, 2018 at 3:02 PM, Simon Kuenzer <simon.kuenzer@xxxxxxxxx> wrote: Hey Roxana, _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |