|
Packit Service |
db8eaa |
/*
|
|
Packit Service |
db8eaa |
* HwDep interface - local header file
|
|
Packit Service |
db8eaa |
* Copyright (c) 2001 by Jaroslav Kysela <perex@perex.cz>
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
* This library is free software; you can redistribute it and/or modify
|
|
Packit Service |
db8eaa |
* it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
db8eaa |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
db8eaa |
* the License, or (at your option) any later version.
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
db8eaa |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
db8eaa |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
db8eaa |
* GNU Lesser General Public License for more details.
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
db8eaa |
* License along with this library; if not, write to the Free Software
|
|
Packit Service |
db8eaa |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit Service |
db8eaa |
*
|
|
Packit Service |
db8eaa |
*/
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#include <stdio.h>
|
|
Packit Service |
db8eaa |
#include <stdlib.h>
|
|
Packit Service |
db8eaa |
#include <limits.h>
|
|
Packit Service |
db8eaa |
#include "local.h"
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
typedef struct {
|
|
Packit Service |
db8eaa |
int (*close)(snd_hwdep_t *hwdep);
|
|
Packit Service |
db8eaa |
int (*nonblock)(snd_hwdep_t *hwdep, int nonblock);
|
|
Packit Service |
db8eaa |
int (*info)(snd_hwdep_t *hwdep, snd_hwdep_info_t *info);
|
|
Packit Service |
db8eaa |
int (*ioctl)(snd_hwdep_t *hwdep, unsigned int request, void * arg);
|
|
Packit Service |
db8eaa |
ssize_t (*write)(snd_hwdep_t *hwdep, const void *buffer, size_t size);
|
|
Packit Service |
db8eaa |
ssize_t (*read)(snd_hwdep_t *hwdep, void *buffer, size_t size);
|
|
Packit Service |
db8eaa |
} snd_hwdep_ops_t;
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
struct _snd_hwdep {
|
|
Packit Service |
db8eaa |
void *dl_handle;
|
|
Packit Service |
db8eaa |
char *name;
|
|
Packit Service |
db8eaa |
snd_hwdep_type_t type;
|
|
Packit Service |
db8eaa |
int mode;
|
|
Packit Service |
db8eaa |
int poll_fd;
|
|
Packit Service |
db8eaa |
const snd_hwdep_ops_t *ops;
|
|
Packit Service |
db8eaa |
void *private_data;
|
|
Packit Service |
db8eaa |
};
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
int snd_hwdep_hw_open(snd_hwdep_t **handle, const char *name, int card, int device, int mode);
|