driver interface updates, included in razer/gwolve
This commit is contained in:
		@@ -12,6 +12,9 @@
 | 
			
		||||
#include <assert.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
 | 
			
		||||
// Driver interface
 | 
			
		||||
#include "../../src/device/driver_interface.h"
 | 
			
		||||
 | 
			
		||||
// Devices
 | 
			
		||||
#include "devices/htx.h"
 | 
			
		||||
#include "devices/hts_plus.h"
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,11 @@
 | 
			
		||||
#include <libusb.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <assert.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
 | 
			
		||||
// Driver interface
 | 
			
		||||
#include "../../src/device/driver_interface.h"
 | 
			
		||||
 | 
			
		||||
#define VENDOR_ID 0x1532
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
#ifndef DRIVER_INTERFACE_H
 | 
			
		||||
#define DRIVER_INTERFACE_H
 | 
			
		||||
 | 
			
		||||
enum device_capacity_t
 | 
			
		||||
typedef enum DEVICE_CAPACITY
 | 
			
		||||
{
 | 
			
		||||
    DEVICE_CAPACITY_MOUSE,
 | 
			
		||||
    DEVICE_CAPACITY_WIRELESS,
 | 
			
		||||
};
 | 
			
		||||
} device_capacity_t;
 | 
			
		||||
 | 
			
		||||
void driver_init(); // Initialization
 | 
			
		||||
uint32_t driver_getkey(); // Calls to this function must return USB keys that this driver registers, until 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user