mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2024-12-29 09:22:02 +00:00
fb8c1edbd7
* Generate bindings for enums * Add .gitignore Cargo didn't automatically made * Actually build the files into the library * `pub` in `mod` to fix warning * instruction struct * Instruction rust binding * Add InstrId::ALL_MAX * link C library to rust * Publish crate CI * test * config bindings * add getters for registers * add names methods for register enums * get_operand_type * feedback from simon * Forgot to add new file to python setup.py * get_operands_slice * add stuff to cargo.toml
31 lines
661 B
C
31 lines
661 B
C
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RABBITIZER_INSTRSUFFIX_H
|
|
#define RABBITIZER_INSTRSUFFIX_H
|
|
#pragma once
|
|
|
|
#include "common/Utils.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
struct RabbitizerInstruction;
|
|
|
|
#include "InstrSuffix_enum.table.h"
|
|
|
|
CONST NODISCARD NON_NULL(1)
|
|
size_t RabbitizerInstrSuffix_getSizeForBuffer(const struct RabbitizerInstruction *self, RabbitizerInstrSuffix instrSuffix);
|
|
|
|
CONST NODISCARD NON_NULL(1, 2)
|
|
size_t RabbitizerInstrSuffix_processSuffix(const struct RabbitizerInstruction *self, char *dst, RabbitizerInstrSuffix instrSuffix);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|