[Freeciv-Dev] Re: (PR#1935) client option change callback
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, 7 Nov 2002, Jason Short via RT wrote:
> > Why is the argument to the new callback a client_options struct, and not
> > just a simple string?
>
> Why not?
For example, we already have a function in the audio code to change a
plugin given a string. If we need to take a struct, we need to make a
wrapper function.
> Ahh, but the real reason is: the change callback can be used for either
> COT_BOOL, COT_INT, or COT_STRING.So passing a single value (unless
> it's a void* and we let the callback figure it out) won't work.
Ok. Point taken.
- Per
|
|