/**************************************************************************************************
	$Header: /pub/cvsroot/yencode/src/support.h,v 1.8 2002/03/10 16:25:52 bboy Exp $

	Copyright (C) 2002  Don Moore <bboy@bboy.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
**************************************************************************************************/

#ifndef _SUPPORT_H
#define _SUPPORT_H

#include "file.h"

#define	STRIP_PATH(p)	(opt_keep_paths ? p : basename(p))


extern char *yencfile_default_filename(const char *filename, const char *default_filename, const char *extension);
extern void yencode_and_write_buffer(FILE *out, const char *filename, const unsigned char *buf, size_t buflen);


extern unsigned char *sfv_construct(YENCFILE **y, int ysize);
extern void sfv_create(const char *, YENCFILE **y, int ysize, const char *output_dir);

extern unsigned char *crc_construct(YENCFILE **y, int ysize);
extern void crc_create(const char *, YENCFILE **y, int ysize, const char *output_dir);


#endif /* !_SUPPORT_H */

/* vi:set ts=3: */


syntax highlighted by Code2HTML, v. 0.9.1