File: myossdev.h

package info (click to toggle)
oss4 4.2-build2020-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,320 kB
  • sloc: ansic: 239,151; cpp: 18,981; sh: 4,590; pascal: 3,863; asm: 1,189; makefile: 574; php: 53; xml: 46
file content (39 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (4)
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
34
35
36
37
38
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 */
};