123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef TOAST_H
- #define TOAST_H
- #include "config.h"
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <stdio.h>
- #include <ctype.h>
- #include <signal.h>
- #include <errno.h>
- #ifndef HAS_ERRNO_DECL
- extern int errno;
- #endif
- #ifdef HAS_LIMITS_H
- #include <limits.h>
- #endif
- #ifdef HAS_FCNTL_H
- # include <fcntl.h>
- #endif
- #ifdef HAS_UTIME
- # ifdef HAS_UTIME_H
- # include <utime.h>
- # endif
- #endif
- #include "gsm.h"
- #ifndef S_ISREG
- #define S_ISREG(x) ((x) & S_IFREG)
- #endif
- # define READ "rb"
- # define WRITE "wb"
- #ifdef O_BINARY
- # define O_WRITE_EXCL O_WRONLY|O_CREAT|O_EXCL|O_BINARY
- #else
- # define O_WRITE_EXCL O_WRONLY|O_CREAT|O_EXCL
- #endif
- #ifndef SIGHANDLER_T
- #define SIGHANDLER_T void
- #endif
- #ifdef HAS_STRING_H
- #include <string.h>
- #else
- # ifdef HAS_STRINGS_H
- # include <strings.h>
- # else
- # include "proto.h"
- extern int strlen P((char *));
- extern char * strcpy P((char *, char *));
- extern char * strcat P((char *, char *));
- extern char * strrchr P((char *, int));
- # include "unproto.h"
- # endif
- #endif
- #ifdef HAS_STDLIB_H
- #include <stdlib.h>
- #else
- # include "proto.h"
- # ifdef HAS_MALLOC_H
- # include <malloc.h>
- # else
- extern char * malloc P((unsigned));
- # endif
- extern int exit P((int));
- # include "unproto.h"
- #endif
- #ifdef HAS_UNISTD_H
- # include <unistd.h>
- #endif
- #define SUFFIX_TOASTED ".gsm"
- #include "proto.h"
- extern int audio_init_input P((void)), audio_init_output P((void));
- extern int ulaw_input P((gsm_signal*)), ulaw_output P((gsm_signal *));
- extern int alaw_input P((gsm_signal*)), alaw_output P((gsm_signal *));
- extern int linear_input P((gsm_signal*)), linear_output P((gsm_signal *));
- #endif
|