What value should i insert there?
<p>i'm trying to set up a driver or something alike for my keyboard. I'm editing somebody elses code according to instructions but one thing is bothering me.</p>

<p>here's code</p>

<pre><code>/* to add a new device, simply create a new DEVICE() in this list */
/* Fields are: "Name",VendorID,ProductID,Capabilities */
const libg15_devices_t g15_devices[] = {
    DEVICE("Logitech G510",0x46d,0xc22d, G15_LCD|G15_KEYS|G15_DEVICE_5BYTE_RETURN|G15_DEVICE_IS_SHARED),
    DEVICE("Logitech G15",0x46d,0xc222,G15_LCD|G15_KEYS),
    DEVICE("Logitech G11",0x46d,0xc225,G15_KEYS),
    DEVICE("Logitech Z-10",0x46d,0x0a07,G15_LCD|G15_KEYS|G15_DEVICE_IS_SHARED),
    DEVICE("Logitech G15 v2",0x46d,0xc227,G15_LCD|G15_KEYS|G15_DEVICE_5BYTE_RETURN),
    DEVICE("Logitech Gamepanel",0x46d,0xc251,G15_LCD|G15_KEYS|G15_DEVICE_IS_SHARED),
    DEVICE(NULL,0,0,0)
};


/* return device capabilities */
int g15DeviceCapabilities() {
    if(found_devicetype&gt;-1)
        return g15_devices[found_devicetype].caps;
    else
        return -1;
}
</code></pre>

<p>The first DEVICE entry is what i'm aiming for and a part of the code i added. here is where i stop.</p>

<pre><code>int setLEDs(unsigned int leds)
{
    int retval = 0;
    unsigned char m_led_buf[4] = { 2, 4, 0, 0 };
    unsigned char g510_led_buf[2] = {4, 0};
    m_led_buf[2] = ~(unsigned char)leds;

    if(g15DeviceCapabilities() &amp; G15_DEVICE_G510) {
</code></pre>

<p>on G15_DEVICE_G510 it stops. i do not know what value i should be replacing it with.</p>

<p>Here's a pastebin of the entire code if this info is insufficient.</p>

<p><a href="http://pastebin.com/N15Fq0S7" rel="nofollow">Pastebin Link</a></p>

<p>Thanks. :)</p>

<p>EDIT: I found out the functions are defined in another file. here they are.</p>

<p><a href="http://pastebin.com/TnMApcvd" rel="nofollow">Pastebin Link</a></p>

<p>So what i really need to do is define G15_DEVICE_G510 somehow in that file.</p>
