opdis/insn_buf.h File Reference

Buffer for building Opdis instructions from libopcodes output. More...

#include <bfd.h>
#include <dis-asm.h>

Go to the source code of this file.

Data Structures

struct  opdis_insn_buffer_t
 A buffer that stores the output of libopcodes before processing. More...

Defines

#define LIBCALL
#define OPDIS_MAX_ITEMS   64
#define OPDIS_MAX_ITEM_SIZE   64
#define OPDIS_MAX_INSN_STR   128

Typedefs

typedef opdis_insn_buffer_topdis_insn_buf_t

Functions

opdis_insn_buf_t LIBCALL opdis_insn_buf_alloc (unsigned int max_items, unsigned int max_item_size, unsigned int max_insn_str)
 Allocate an instruction buffer.
void LIBCALL opdis_insn_buf_free (opdis_insn_buf_t buf)
 Free an instruction buffer.
int LIBCALL opdis_insn_buf_append (opdis_insn_buf_t buf, const char *item)
 Append a string to an opdis_insn_buffer_t.
void LIBCALL opdis_insn_buf_clear (opdis_insn_buf_t buf)
 Clear the data in an opdis_insn_buffer_t.

Detailed Description

Buffer for building Opdis instructions from libopcodes output.

This defines the buffer data structure used by libopdis to capture libopcodes output.

Author:
TG Community Developers <community@thoughtgang.org>
Note:
Copyright (c) 2010 ThoughtGang. Released under the GNU Public License, version 3. See http://www.gnu.org/licenses/gpl.txt for details.

Generated on Wed Mar 10 14:30:45 2010 for Opdis Disassembly Library by  doxygen 1.6.1