#ifndef BINEMUL_H
#define BINEMUL_H
#include "bfd.h"
#include "bucomm.h"
extern void ar_emul_usage PARAMS ((FILE *));
extern void ar_emul_default_usage PARAMS ((FILE *));
extern boolean ar_emul_append PARAMS ((bfd **, char *, boolean));
extern boolean ar_emul_default_append PARAMS ((bfd **, char *, boolean));
extern boolean ar_emul_replace PARAMS ((bfd **, char *, boolean));
extern boolean ar_emul_default_replace PARAMS ((bfd **, char *, boolean));
extern boolean ar_emul_create PARAMS ((bfd **, char *, char *));
extern boolean ar_emul_default_create PARAMS ((bfd **, char *, char *));
extern boolean ar_emul_parse_arg PARAMS ((char *));
extern boolean ar_emul_default_parse_arg PARAMS ((char *));
#define AR_EMUL_USAGE_PRINT_OPTION_HEADER(fp) \
\
fprintf (fp, _(" emulation options: \n"))
#define AR_EMUL_ELEMENT_CHECK(abfd, file_name) \
do { if ((abfd) == (bfd *) NULL) bfd_fatal (file_name); } while (0)
#define AR_EMUL_APPEND_PRINT_VERBOSE(verbose, file_name) \
do { if (verbose) printf ("a - %s\n", file_name); } while (0)
#define AR_EMUL_REPLACE_PRINT_VERBOSE(verbose, file_name) \
do { if (verbose) printf ("r - %s\n", file_name); } while (0)
typedef struct bin_emulation_xfer_struct
{
void (* ar_usage) PARAMS ((FILE *fp));
boolean (* ar_append) PARAMS ((bfd **, char *, boolean));
boolean (* ar_replace) PARAMS ((bfd **, char *, boolean));
boolean (* ar_create) PARAMS ((bfd **, char *, char *));
boolean (* ar_parse_arg) PARAMS ((char *));
}
bin_emulation_xfer_type;
#endif