diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
commit | 1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch) | |
tree | 4495d23e7b54ab5700e3839081e797c1eafe0db9 /tutorials/drivers/myossdev0/myossdev.h | |
download | oss4-upstream.tar.gz |
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'tutorials/drivers/myossdev0/myossdev.h')
-rw-r--r-- | tutorials/drivers/myossdev0/myossdev.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tutorials/drivers/myossdev0/myossdev.h b/tutorials/drivers/myossdev0/myossdev.h new file mode 100644 index 0000000..8c631fb --- /dev/null +++ b/tutorials/drivers/myossdev0/myossdev.h @@ -0,0 +1,39 @@ +/* + * Purpose: Common definitions for the ACME Labs Evil Audio driver. + * + * The intial comment usually doesn't contain much information. + */ + +/* + * As in the C sources you need to include a placeholder define for the + * copyright notice. To avoid getting multiple define warnings for the COPYING + * macro the header files should use macro name like COPYING2..COPYING9. + */ + +/* + * + * This file is part of Open Sound System. + * + * Copyright (C) 4Front Technologies 1996-2008. + * + * This this source file is released under GPL v2 license (no other versions). + * See the COPYING file included in the main directory of this source + * distribution for the license terms and conditions. + * + */ + +/* + * Each device instance should have a per-device data structure that contains + * variables common to all sub-devices of the card. By convenntion this + * structure is called devc. Driver designers may use different terminology. + * However use of devc is highly recomended in all OSS drivers because it + * will make maintenance of the code easier. + */ + +typedef struct _myossdev_devc_t *myoss_devc_t; + +struct _myossdev_devc_t +{ + oss_device_t *osdev; /* A handle to the device given by the OSS core. */ + oss_mutex_t *mutex; /* A lock/mutex variable for the device */ +}; |