use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ImportEntry {
pub dll_name: String,
pub functions: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ImportTable {
pub entries: Vec<ImportEntry>,
}
impl ImportTable {
pub fn new() -> Self {
Self { entries: Vec::new() }
}
}
impl Default for ImportTable {
fn default() -> Self {
Self::new()
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ExportTable {
pub name: String,
pub functions: Vec<String>,
}
impl ExportTable {
pub fn new() -> Self {
Self { name: String::new(), functions: Vec::new() }
}
}
impl Default for ExportTable {
fn default() -> Self {
Self::new()
}
}