/* # # Common definitions for the entire project. # # $Id: mpegparse-private.h,v 1.2 2005/03/03 10:25:03 nemesis Exp $ # # Copyright (C) 2003-2005 Kees Cook # kees@outflux.net, http://outflux.net/ # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # http://www.gnu.org/copyleft/gpl.html # */ #ifndef _MPEGPARSE_PRIVATE_H_ #define _MPEGPARSE_PRIVATE_H_ #ifdef HAVE_CONFIG_H # include "config.h" #endif /* get the cool numbers */ #include #include "file_buffer.h" #include "mpegparse.h" /* figure out which fseek/ftell we need */ #ifdef HAVE_FSEEKO # define FSEEK fseeko # define FSEEK_NAME "fseeko" # define FTELL ftello # define FTELL_NAME "ftello" #else # define FSEEK fseek # define FSEEK_NAME "fseek" # define FTELL ftell # define FTELL_NAME "ftell" #endif /* figure out off_t formatting */ #if _FILE_OFFSET_BITS==64 # define OFF_T_FORMAT "llu" #else # warning "Not compiling for large file (>2G) support!" # define OFF_T_FORMAT "lu" #endif /* define a string length used for short reports */ #define REPORT_LENGTH 128 /* standard boolean */ #ifndef TRUE # define TRUE 1 #endif #ifndef FALSE # define FALSE 0 #endif struct mpegparse_t { file_buf * fb; // file buffer struct mpegparse_packet_info info; }; #endif /* _MPEGPARSE_PRIVATE_H_ */