HiNo intentions, I did mention it was a rough API? I think it is a good idea to specify gint16, 32, 64.
I know there has been a discussion about this already... but
Why do you use int instead of gint32 or gint16?
Actually don't know yet. One could wonder if we need floats at all. If we need them, how precise should they be.I'm not sure, but is using a type of unknown width like int more a problem when porting to different archs (like Alpha) than using a type with guaranteed width like gint32?
How do you store float values here?
int type; /**< Boolean, nummeric, float?, string, enum */ int num_value; /**< Assigned value. eg: 1800 */ int num_value_default; /**< Default value if not set. eg: 600 */ int num_min; /**< Minimum value, or -1 if not a range. eg: 0 */ int num_max; /**< Maximum value, or num_min if no maximum. eg: 0 */
Do you use fixed point values then or do you want to store them as a String?
What is this?
char **enum_values;
Cheers.
A pointer to a string. Ie, "Value1", "Value2" etc.. they all need to be NULL terminated.
- Jeroen
------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
