Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: (PR#1935) client option change callback
Home

[Freeciv-Dev] Re: (PR#1935) client option change callback

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#1935) client option change callback
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Thu, 7 Nov 2002 21:14:26 +0000 (GMT)

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



[Prev in Thread] Current Thread [Next in Thread]