1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
/*
* gom.h GOM Header file
*/
#ifndef GOM_H
#define GOM_H
/*
* This file is part of the package
*
* gom, Gom is nOt yet another Mixer
*
* (c) Stephan Suerken <suerken@fh-worms.de> 1996, 1997
*/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* INCLUDES
*/
/* ANSI C headers */
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <limits.h>
/* System headers */
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
/* GNU headers */
#if defined(HAVE_GETOPT_H)
#include <getopt.h>
#endif /* HAVE_GETOPT_H */
/* GOM headers */
#include "gom_info.h"
#include "gom_driver.h"
#include "gom_mixer.h"
#include "gom_gomii.h"
#include "gom_file.h"
#include "gom_action.h"
#include "gom_iface.h"
/*
* MACROS
*/
/* check for makefile-side defines */
#if !defined(GOM_VERSION)
#define GOM_VERSION "no version: GOM_VERSION not defined when building gom."
#endif
#if !defined(GOM_DATE)
#define GOM_DATE "no date: GOM_DATE not defined when building gom."
#endif
/* version string: is makefile-dependent */
#define GOM_VERSION_STRING "gom " GOM_VERSION " (" GOM_DATE ")"
/* title & copyright line */
#define GOM_TITLE "GOM, Gom is nOt yet another Mixer"
#define GOM_COPYRIGHT "Copyright (c) 1996, 1997 Stephan Srken <suerken@fh-worms.de>"
/* some basic configuration (there should be no need to change these) */
#define GOM_DEVICE_FILE_DEFAULT "/dev/mixer"
#define GOM_DEVICE_FILE_SIZE 80
#define GOM_DEVICE_FILE_SIZE_AS_STR "80"
#define GOM_DEVICE_NOT_OPENED_TEXT "** no mixer opened **"
#define GOM_CONFIG_DIR_USER ".gom/"
#define GOM_CONFIG_DIR_SYSTEM "/etc/gom/"
#define GOM_CONFIG_FILE "gomrc"
#define GOM_OPTIONS_FILE_DEFAULT "default"
/* fade interval */
#define GOM_MIXER_FADIVAL_MIN 1 /* seconds */
#define GOM_MIXER_FADIVAL_MAX 1800 /* 1800 seconds = 30 mins */
#define GOM_MIXER_FADIVAL_DEFAULT 5 /* seconds */
#define GOM_MIXER_FADIVAL_DEFAULT_QUOTED "5" /* seconds */
/* refresh interval */
#define GOM_GOMII_REFIVAL_MIN 0 /* 0 disables */
#define GOM_GOMII_REFIVAL_MAX 3600 /* 3600 seconds = 1 h */
#define GOM_GOMII_REFIVAL_DEFAULT 30 /* seconds */
#define GOM_GOMII_REFIVAL_DEFAULT_QUOTED "30" /* seconds */
/*
* DECLARATIONS/DEFINTIONS
*/
/*
* FUNCTION PROTOTYPES
*/
/*
* GOM STANDARD INCLUDES
*/
/*
* OVERALL MACROS
*/
#endif /* gom_h */
|