feat: scaffold v0.1 foundation
This commit is contained in:
parent
c4fb0c6a01
commit
170ca32f58
34 changed files with 6175 additions and 5 deletions
14
src/domain/selector.rs
Normal file
14
src/domain/selector.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::Address;
|
||||
|
||||
/// Exactly one explicit Function Selector.
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, JsonSchema)]
|
||||
#[serde(tag = "kind", content = "value", rename_all = "snake_case")]
|
||||
pub enum FunctionSelector {
|
||||
/// Exact, case-sensitive Ghidra function name.
|
||||
Name(String),
|
||||
/// Exact function entry address.
|
||||
Address(Address),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue