~stefanlsd/btnx/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 /* 
  * Copyright (C) 2007  Olli Salonen <oasalonen@gmail.com>
  * see btnx.c for detailed license information
  */
  

#include "device.h"

/* Static variables */
static int product_id=0;
static int vendor_id=0;


int device_get_vendor_id(void)
{
	return vendor_id;
}

int device_get_product_id(void)
{
	return product_id;
}

void device_set_vendor_id(int id)
{
	vendor_id = id;
}

void device_set_product_id(int id)
{
	product_id = id;
}