home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xmmix-1.1 / appenv.h next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  2.3 KB  |  102 lines

  1. /*
  2.  *   appenv - Common header file for xmmix.
  3.  *
  4.  *    xmmix  - Motif(tm) Audio Mixer
  5.  *
  6.  *   Copyright (C) 1995  Ti Kan
  7.  *   E-mail: ti@amb.org
  8.  *
  9.  *   This program is free software; you can redistribute it and/or modify
  10.  *   it under the terms of the GNU General Public License as published by
  11.  *   the Free Software Foundation; either version 2 of the License, or
  12.  *   (at your option) any later version.
  13.  *
  14.  *   This program is distributed in the hope that it will be useful,
  15.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  *   GNU General Public License for more details.
  18.  *
  19.  *   You should have received a copy of the GNU General Public License
  20.  *   along with this program; if not, write to the Free Software
  21.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  *
  23.  */
  24. #ifndef __APPENV_H__
  25. #define __APPENV_H__
  26.  
  27. #ifndef LINT
  28. static char *_appenv_h_ident_ = "@(#)appenv.h    2.3 95/05/12";
  29. #endif
  30.  
  31.  
  32. /* Whether STATIC should really be... */
  33. #ifdef DEBUG
  34. #define STATIC
  35. #else
  36. #define STATIC        static
  37. #endif
  38.  
  39.  
  40. /* Include needed X11 and Motif headers */
  41. #include <Xm/Xm.h>
  42. #include <Xm/CascadeB.h>
  43. #include <Xm/FileSB.h>
  44. #include <Xm/Form.h>
  45. #include <Xm/Frame.h>
  46. #include <Xm/Label.h>
  47. #include <Xm/MessageB.h>
  48. #include <Xm/PushB.h>
  49. #include <Xm/RowColumn.h>
  50. #include <Xm/Scale.h>
  51. #include <Xm/Separator.h>
  52. #include <Xm/Text.h>
  53. #include <Xm/ToggleB.h>
  54. #include <Xm/Protocols.h>
  55. #include <X11/Xatom.h>
  56.  
  57.  
  58. /* Common header files to be included for all modules */
  59. #include <sys/types.h>
  60. #include <sys/stat.h>
  61. #include <sys/ioctl.h>
  62. #include <sys/soundcard.h>
  63. #include <stdlib.h>
  64. #include <stdio.h>
  65. #include <errno.h>
  66. #include <fcntl.h>
  67. #include <signal.h>
  68. #include <string.h>
  69.  
  70.  
  71. /* Program name */
  72. #define PROGNAME    "xmmix"
  73.  
  74.  
  75. /* Data type definitions */
  76. typedef char        bool_t;            /* Boolean */
  77.  
  78.  
  79. /* Boolean flags */
  80. #ifndef FALSE
  81. #define FALSE        0
  82. #endif
  83. #ifndef TRUE
  84. #define TRUE        1
  85. #endif
  86.  
  87.  
  88. /* Constant definitions */
  89. #define STR_BUF_SZ    64        /* Generic string buffer size */
  90.  
  91. typedef struct {
  92.     char        *device;    /* Device path */
  93.     char        *helppath;    /* Help file path */
  94.     char        *autoload;    /* Auto load on startUp flag */
  95.     bool_t        demo;        /* Demo flag */
  96.     bool_t        debug;        /* Debug flag */
  97.     bool_t        exitreset;    /* Reset on exit flag */
  98. } appdata_t;
  99.  
  100. #endif    /* __APPENV_H__ */
  101.  
  102.