Move colorchord2 into its own folder, since colorchord embedded is its own thing.
This commit is contained in:
parent
24b606988f
commit
ed15ea49b9
56 changed files with 1 additions and 12 deletions
44
colorchord2/outdrivers.h
Normal file
44
colorchord2/outdrivers.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
//Output drivers, used for outputting lights, etc... However, this technique
|
||||
//may be used for unrelated-to-output plugins.
|
||||
|
||||
#ifndef _OUTDRIVERS_H
|
||||
#define _OUTDRIVERS_H
|
||||
|
||||
#include "os_generic.h"
|
||||
|
||||
struct NoteFinder;
|
||||
|
||||
#define MAX_LEDS 32678
|
||||
|
||||
extern int force_white;
|
||||
extern unsigned char OutLEDs[MAX_LEDS*3];
|
||||
extern int UsedLEDs;
|
||||
|
||||
|
||||
#define MAX_OUT_DRIVERS 64
|
||||
#define MAX_OUT_DRIVER_STRING 1024
|
||||
|
||||
struct OutDriverListElem
|
||||
{
|
||||
const char * Name;
|
||||
struct DriverInstances * (*Init)();
|
||||
};
|
||||
|
||||
struct DriverInstances
|
||||
{
|
||||
void * id;
|
||||
void (*Func)(void * id, struct NoteFinder* nf );
|
||||
void (*Params)(void * id);
|
||||
};
|
||||
|
||||
extern struct OutDriverListElem ODList[MAX_OUT_DRIVERS];
|
||||
extern const char OutDriverParameters[MAX_OUT_DRIVER_STRING];
|
||||
|
||||
//Pass setup "name=[driver]"
|
||||
struct DriverInstances * SetupOutDriver( );
|
||||
void RegOutDriver( const char * ron, struct DriverInstances * (*Init)( ) );
|
||||
|
||||
#define REGISTER_OUT_DRIVER( name ) \
|
||||
EXECUTE_AT_BOOT( r##name, RegOutDriver( #name, name ) );
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue