Simplifying the API

This commit is contained in:
Pierre Pronchery 2011-04-27 23:57:16 +00:00
parent 7bbe4797be
commit 524ef4d910
2 changed files with 6 additions and 2 deletions

View File

@ -44,8 +44,6 @@ int asm_decode(Asm * a, char const * buffer, size_t size);
int asm_decode_file(Asm * a, char const * filename, FILE * fp);
int asm_parse(Asm * a, char const * infile, char const * outfile);
int asm_open(Asm * a, char const * outfile);
int asm_close(Asm * a);
int asm_section(Asm * a, char const * name);
int asm_function(Asm * a, char const * name);
int asm_instruction(Asm * a, char const * name, unsigned int operands_cnt, ...);

View File

@ -23,9 +23,15 @@
# include "format.h"
/* protected */
/* functions */
/* accessors */
Arch * asm_get_arch(Asm * a);
Format * asm_get_format(Asm * a);
/* useful */
int asm_open(Asm * a, char const * outfile);
int asm_close(Asm * a);
#endif /* !ASM_ASM_H */