1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#ifndef __DEVIWAVE_H
#define __DEVIWAVE_H
struct mcpDevAPI_t;
struct configAPI_t;
struct mixAPI_t;
struct mcpDriver_t
{
char name[32]; /* includes the NULL termination */
char description[64]; /* includes the NULL termination */
int (*Detect) (const struct mcpDriver_t *driver); /* 0 = driver not functional, 1 = driver is functional */
const struct mcpDevAPI_t *(*Open) (const struct mcpDriver_t *driver, const struct configAPI_t *config, const struct mixAPI_t *mixAPI);
void (*Close) (const struct mcpDriver_t *driver);
};
void mcpRegisterDriver (const struct mcpDriver_t *driver);
void mcpUnregisterDriver(const struct mcpDriver_t *driver);
#endif
|