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