On Tue, 2012-10-09 at 16:23 +0200, Olivier Fourdan wrote:
> Bastien Nocera said the following on 10/08/2012 06:24 PM:
> > [...]
> > Looks to me like "builtin" is "tablet is integrated with the display"
> > and "ISD" is "tablet is integrated with the computer".
> >
> > I'm sure we could deprecate the _is_builtin() function, and use a
> > bitmask for this support instead?
> >
> > LIBWACOM_DEVICE_INTEGRATED_WITH_NONE = 0,
> > LIBWACOM_DEVICE_INTEGRATED_WITH_DISPLAY = 1<<  0,
> > LIBWACOM_DEVICE_INTEGRATED_WITH_COMPUTER = 1<<  2
> >
> 
> I am no big fan of "integrated with computer" either, why limiting us 
> to "computer", I would rather see "integrated with system" (system 
> being a computer, a handhelp device, etc.) Additionally that matches 
> the ISD definition, integrated system device..
> 
> I would like to keep things simple (as always) for both the developer 
> and user of the API, and also avoid complicated or convoluted 
> functions names.
> 
> IMHO we should keep the database format similar enough to the function 
> names accessing it, ie if we deprecate _is_builtin() in the API it 
> should be also replaced in the database.
> 
> In a nutshell what I a would do instead is:
> 
> database definition use something like:
> 
> IntegratedIn=Display;System
> 
> for a tablet PC and
> 
> IntegratedIn=Display
> 
> for a screen tablet such as a Cintiq.
> 
> This is now set in the Device section as it's not really a feature 
> (but a characteristic of the device).
> 
> Now for the API:
> 
> libwacom_is_builtin() is deprecated in favor of the WacomIntegrationFlags
> 
> One pain point is the "BuiltIn" replacement, because "BuiltIn" is also 
> automatically set from the sysfs device/properties (see my other email 
> about the flags in sysfs), so we need an additional flag 
> WACOM_DEVICE_INTEGRATED_UNSET indicating that the database do not 
> provide the information. In that case,

WACOM_DEVICE_INTEGRATED_UNSET = -1
Then. The compiler will make it an int instead of an unsigned int.


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to