X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib.h;h=11dcf66fc7a348ebcd8a07af9613bb58d7696f4a;hp=b12b8cc4f20f02c92a9ce495d6dd4c592b75ed62;hb=7d29626ce4e1fa932c6349c7253e6f774df069fc;hpb=0f44dc85fc1280372ffab911d701e703d803fb4b diff --git a/lib.h b/lib.h index b12b8cc..11dcf66 100644 --- a/lib.h +++ b/lib.h @@ -8,66 +8,10 @@ * please see the file GPL in the top level source directory. */ -/* mutt functions which are generally useful. */ - #ifndef _LIB_H # define _LIB_H -# include -# include -# ifdef HAVE_UNISTD_H -# include /* needed for SEEK_SET */ -# endif -# include -# include -# include -# include -# include -# include - -# ifndef _POSIX_PATH_MAX -# include -# endif - -# define TRUE 1 -# define FALSE 0 - -# undef MAX -# undef MIN -# define MAX(a,b) ((a) < (b) ? (b) : (a)) -# define MIN(a,b) ((a) < (b) ? (a) : (b)) - -#define FOREVER while (1) - -# ifndef _EXTLIB_C -extern void (*mutt_error) (const char *, ...); -# endif void mutt_exit (int); - -/* The actual library functions. */ - -FILE *safe_fopen (const char *, const char *); - -char *mutt_concat_path (char *, const char *, const char *, size_t); -char *mutt_read_line (char *, size_t *, FILE *, int *); -char *mutt_skip_whitespace (char *); - -const char *mutt_basename (const char *); - -int mutt_copy_stream (FILE *, FILE *); -int mutt_copy_bytes (FILE *, FILE *, size_t); -int mutt_rx_sanitize_string (char *, size_t, const char *); - -int safe_open (const char *, int); -int safe_symlink (const char *, const char *); -int safe_rename (const char *, const char *); -int safe_fclose (FILE **); - -size_t mutt_quote_filename (char *, size_t, const char *); - void mutt_nocurses_error (const char *, ...); -void mutt_remove_trailing_ws (char *); -void mutt_sanitize_filename (char *, short); -void mutt_unlink (const char *); #endif