1d5ac70f0Sopenharmony_ci/*
2d5ac70f0Sopenharmony_ci *  Mask header
3d5ac70f0Sopenharmony_ci *  Copyright (c) 2000 by Abramo Bagnara <abramo@alsa-project.org>
4d5ac70f0Sopenharmony_ci *
5d5ac70f0Sopenharmony_ci *
6d5ac70f0Sopenharmony_ci *   This library is free software; you can redistribute it and/or modify
7d5ac70f0Sopenharmony_ci *   it under the terms of the GNU Lesser General Public License as
8d5ac70f0Sopenharmony_ci *   published by the Free Software Foundation; either version 2.1 of
9d5ac70f0Sopenharmony_ci *   the License, or (at your option) any later version.
10d5ac70f0Sopenharmony_ci *
11d5ac70f0Sopenharmony_ci *   This program is distributed in the hope that it will be useful,
12d5ac70f0Sopenharmony_ci *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13d5ac70f0Sopenharmony_ci *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14d5ac70f0Sopenharmony_ci *   GNU Lesser General Public License for more details.
15d5ac70f0Sopenharmony_ci *
16d5ac70f0Sopenharmony_ci *   You should have received a copy of the GNU Lesser General Public
17d5ac70f0Sopenharmony_ci *   License along with this library; if not, write to the Free Software
18d5ac70f0Sopenharmony_ci *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19d5ac70f0Sopenharmony_ci *
20d5ac70f0Sopenharmony_ci */
21d5ac70f0Sopenharmony_ci
22d5ac70f0Sopenharmony_citypedef struct _snd_mask snd_mask_t;
23d5ac70f0Sopenharmony_ci
24d5ac70f0Sopenharmony_ci#define SND_MASK_MAX 64
25d5ac70f0Sopenharmony_ci
26d5ac70f0Sopenharmony_ci#ifdef SND_MASK_INLINE
27d5ac70f0Sopenharmony_ci#include "mask_inline.h"
28d5ac70f0Sopenharmony_ci#else
29d5ac70f0Sopenharmony_civoid snd_mask_none(snd_mask_t *mask);
30d5ac70f0Sopenharmony_civoid snd_mask_any(snd_mask_t *mask);
31d5ac70f0Sopenharmony_civoid snd_mask_load(snd_mask_t *mask, unsigned int msk);
32d5ac70f0Sopenharmony_ciint snd_mask_empty(const snd_mask_t *mask);
33d5ac70f0Sopenharmony_ciint snd_mask_full(const snd_mask_t *mask);
34d5ac70f0Sopenharmony_civoid snd_mask_set(snd_mask_t *mask, unsigned int val);
35d5ac70f0Sopenharmony_civoid snd_mask_reset(snd_mask_t *mask, unsigned int val);
36d5ac70f0Sopenharmony_civoid snd_mask_copy(snd_mask_t *mask, const snd_mask_t *v);
37d5ac70f0Sopenharmony_ciint snd_mask_test(const snd_mask_t *mask, unsigned int val);
38d5ac70f0Sopenharmony_civoid snd_mask_intersect(snd_mask_t *mask, const snd_mask_t *v);
39d5ac70f0Sopenharmony_civoid snd_mask_union(snd_mask_t *mask, const snd_mask_t *v);
40d5ac70f0Sopenharmony_ciunsigned int snd_mask_count(const snd_mask_t *mask);
41d5ac70f0Sopenharmony_ciunsigned int snd_mask_min(const snd_mask_t *mask);
42d5ac70f0Sopenharmony_ciunsigned int snd_mask_max(const snd_mask_t *mask);
43d5ac70f0Sopenharmony_civoid snd_mask_set_range(snd_mask_t *mask, unsigned int from, unsigned int to);
44d5ac70f0Sopenharmony_civoid snd_mask_reset_range(snd_mask_t *mask, unsigned int from, unsigned int to);
45d5ac70f0Sopenharmony_civoid snd_mask_leave(snd_mask_t *mask, unsigned int val);
46d5ac70f0Sopenharmony_ciint snd_mask_eq(const snd_mask_t *mask, const snd_mask_t *v);
47d5ac70f0Sopenharmony_ciint snd_mask_single(const snd_mask_t *mask);
48d5ac70f0Sopenharmony_ciint snd_mask_refine(snd_mask_t *mask, const snd_mask_t *v);
49d5ac70f0Sopenharmony_ciint snd_mask_refine_first(snd_mask_t *mask);
50d5ac70f0Sopenharmony_ciint snd_mask_refine_last(snd_mask_t *mask);
51d5ac70f0Sopenharmony_ciint snd_mask_refine_min(snd_mask_t *mask, unsigned int val);
52d5ac70f0Sopenharmony_ciint snd_mask_refine_max(snd_mask_t *mask, unsigned int val);
53d5ac70f0Sopenharmony_ciint snd_mask_refine_set(snd_mask_t *mask, unsigned int val);
54d5ac70f0Sopenharmony_ciint snd_mask_value(const snd_mask_t *mask);
55d5ac70f0Sopenharmony_ciint snd_mask_always_eq(const snd_mask_t *m1, const snd_mask_t *m2);
56d5ac70f0Sopenharmony_ciint snd_mask_never_eq(const snd_mask_t *m1, const snd_mask_t *m2);
57d5ac70f0Sopenharmony_ci#endif
58