opdis/types.h File Reference

Base types used by opdis. More...

#include <bfd.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  opdis_buffer_t
 A buffer containing bytes to disassemble. More...

Defines

#define LIBCALL
#define OPDIS_INVALID_OFFSET   ((opdis_off_t) -1 )
#define OPDIS_INVALID_ADDR   ((opdis_vma_t) -1 )

Typedefs

typedef bfd_byte opdis_byte_t
 A byte.
typedef size_t opdis_off_t
 A buffer offset.
typedef bfd_vma opdis_vma_t
typedef opdis_buffer_topdis_buf_t
 Pointer to an opdis buffer.

Functions

opdis_buf_t LIBCALL opdis_buf_alloc (opdis_off_t size, opdis_vma_t addr)
 Allocate an opdis buffer.
void LIBCALL opdis_buf_set_vma (opdis_buf_t buf, opdis_vma_t addr)
 Set the VMA for a buffer.
opdis_buf_t LIBCALL opdis_buf_read (FILE *f, opdis_off_t size, opdis_vma_t addr)
 Allocate an opdis buffer containing contents of file.
int LIBCALL opdis_buf_fill (opdis_buf_t buf, opdis_off_t offset, void *src, opdis_off_t len)
 Fill an opdis buffer from a memory location.
void LIBCALL opdis_buf_free (opdis_buf_t buf)
 Free an opdis buffer.

Detailed Description

Base types used by opdis.

This defines the types used by the opdis disassembler.

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