|
Packit Service |
db8eaa |
/*
|
|
Packit Service |
db8eaa |
* Mask header
|
|
Packit Service |
db8eaa |
* Copyright (c) 2000 by Abramo Bagnara <abramo@alsa-project.org>
|
|
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 |
typedef struct _snd_mask snd_mask_t;
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#define SND_MASK_MAX 64
|
|
Packit Service |
db8eaa |
|
|
Packit Service |
db8eaa |
#ifdef SND_MASK_INLINE
|
|
Packit Service |
db8eaa |
#include "mask_inline.h"
|
|
Packit Service |
db8eaa |
#else
|
|
Packit Service |
db8eaa |
void snd_mask_none(snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
void snd_mask_any(snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
void snd_mask_load(snd_mask_t *mask, unsigned int msk);
|
|
Packit Service |
db8eaa |
int snd_mask_empty(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
int snd_mask_full(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
void snd_mask_set(snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
void snd_mask_reset(snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
void snd_mask_copy(snd_mask_t *mask, const snd_mask_t *v);
|
|
Packit Service |
db8eaa |
int snd_mask_test(const snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
void snd_mask_intersect(snd_mask_t *mask, const snd_mask_t *v);
|
|
Packit Service |
db8eaa |
void snd_mask_union(snd_mask_t *mask, const snd_mask_t *v);
|
|
Packit Service |
db8eaa |
unsigned int snd_mask_count(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
unsigned int snd_mask_min(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
unsigned int snd_mask_max(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
void snd_mask_set_range(snd_mask_t *mask, unsigned int from, unsigned int to);
|
|
Packit Service |
db8eaa |
void snd_mask_reset_range(snd_mask_t *mask, unsigned int from, unsigned int to);
|
|
Packit Service |
db8eaa |
void snd_mask_leave(snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
int snd_mask_eq(const snd_mask_t *mask, const snd_mask_t *v);
|
|
Packit Service |
db8eaa |
int snd_mask_single(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
int snd_mask_refine(snd_mask_t *mask, const snd_mask_t *v);
|
|
Packit Service |
db8eaa |
int snd_mask_refine_first(snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
int snd_mask_refine_last(snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
int snd_mask_refine_min(snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
int snd_mask_refine_max(snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
int snd_mask_refine_set(snd_mask_t *mask, unsigned int val);
|
|
Packit Service |
db8eaa |
int snd_mask_value(const snd_mask_t *mask);
|
|
Packit Service |
db8eaa |
int snd_mask_always_eq(const snd_mask_t *m1, const snd_mask_t *m2);
|
|
Packit Service |
db8eaa |
int snd_mask_never_eq(const snd_mask_t *m1, const snd_mask_t *m2);
|
|
Packit Service |
db8eaa |
#endif
|