format

format

Functions

char const * (*get_filename) ()
void (*get_functions) ()
ssize_t (*read) ()
off_t (*seek) ()
ssize_t (*write) ()
AsmFunction * (*get_function_by_id) ()
AsmSection * (*get_section_by_id) ()
AsmString * (*get_string_by_id) ()
AsmSection * (*set_function) ()
AsmSection * (*set_section) ()
AsmString * (*set_string) ()
int (*decode) ()
AsmArchPlugin * (*init) ()
void (*destroy) ()
char const * (*guess) ()
int (*directive) ()
int (*function) ()
int (*section) ()
char const * (*detect) ()
int (*decode_section) ()

Types and Values

Description

Functions

get_filename ()

char const *
(*get_filename) (AsmArch *arch);

get_functions ()

void
(*get_functions) (AsmFormat *format,
                  AsmFunction **functions,
                  size_t *functions_cnt);

read ()

ssize_t
(*read) (AsmArch *arch,
         void *buf,
         size_t size);

seek ()

off_t
(*seek) (AsmArch *arch,
         off_t offset,
         int whence);

write ()

ssize_t
(*write) (AsmArch *arch,
          void const *buf,
          size_t size);

get_function_by_id ()

AsmFunction *
(*get_function_by_id) (AsmArch *arch,
                       AsmFunctionId id);

get_section_by_id ()

AsmSection *
(*get_section_by_id) (AsmFormat *format,
                      AsmSectionId id);

get_string_by_id ()

AsmString *
(*get_string_by_id) (AsmArch *arch,
                     AsmStringId id);

set_function ()

AsmSection *
(*set_function) (AsmFormat *format,
                 int id,
                 char const *name,
                 off_t offset,
                 ssize_t size);

set_section ()

AsmSection *
(*set_section) (AsmFormat *format,
                int id,
                unsigned int flags,
                char const *name,
                off_t offset,
                ssize_t size,
                off_t base);

set_string ()

AsmString *
(*set_string) (AsmFormat *format,
               int id,
               char const *name,
               off_t offset,
               ssize_t size);

decode ()

int
(*decode) (AsmArchPlugin *arch,
           AsmArchInstructionCall *call);

init ()

AsmArchPlugin *
(*init) (AsmArchPluginHelper *helper);

destroy ()

void
(*destroy) (AsmArchPlugin *arch);

guess ()

char const *
(*guess) (AsmFormatPlugin *format,
          char const *hint);

directive ()

int
(*directive) (AsmFormatPlugin *format,
              char const *directive,
              char const **args,
              size_t size);

function ()

int
(*function) (AsmFormatPlugin *format,
             char const *function);

section ()

int
(*section) (AsmFormatPlugin *format,
            char const *section);

detect ()

char const *
(*detect) (AsmFormatPlugin *format);

decode_section ()

int
(*decode_section) (AsmFormatPlugin *format,
                   AsmSection *section,
                   AsmArchInstructionCall **calls,
                   size_t *calls_cnt);

Types and Values

AsmFormat

typedef struct _AsmFormat AsmFormat;

AsmFormatPlugin

typedef struct _AsmFormatPlugin AsmFormatPlugin;