Erik Massop wrote:
- don't ask the client to strtol all numeric properties from strings!
  we should maybe use some heuristic server-side to determine what
  type to wrap in the xmmsv_t. could use the content and/or hardcoded
  or even dynamic mapping of property->type for that.

We have three options:
- Allow strings to be converted to ints under the hood in the clientlib
- Add an extra column in the database recording the type
- Chose a type based on the property's name. (Requires us to fetch
this always.)
- Wait for S4.

To me the only thing that would make sense is that if the property was set by xmms_xform_metadata_set_int it should be an int, and if it was set with xmms_xform_metadata_set_str it should be a string. Without any exceptions. I guess the only of the alternatives that handles that properly is adding an extra column (either a type column, or an new value_int column, thats would be NULL for strings (but the value column would always contain the string representation if that helps querying)).

 anders

--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms.se
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to