xref: /openbsd/regress/lib/libsndio/tools.h (revision 78ccc913)
1 /*	$OpenBSD: tools.h,v 1.1 2011/04/12 07:12:59 ratchov Exp $	*/
2 /*
3  * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
4  *
5  * Permission to use, copy, modify, and distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 #ifndef TOOLS_H
18 #define TOOLS_H
19 
20 /*
21  * maximum size of the encording string (the longest possible
22  * encoding is ``s24le3msb'')
23  */
24 #define SIO_ENCMAX	10
25 
26 /*
27  * default device for the sun audio(4) back-end
28  */
29 #define SIO_SUN_PATH	"/dev/audio"
30 
31 /*
32  * default socket name for the aucat(1) back-end
33  */
34 #define SIO_AUCAT_PATH	"default"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 struct sio_par;
41 
42 int sio_strtoenc(struct sio_par *, char *);
43 int sio_enctostr(struct sio_par *, char *);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* !defined(TOOLS_H) */
50