mirror of
https://github.com/SideStore/em_proxy.git
synced 2026-05-17 20:20:35 +00:00
21 lines
451 B
Swift
21 lines
451 B
Swift
//
|
|
// em_proxy.swift
|
|
// SideStore
|
|
//
|
|
// Created by Jackson Coxson on 10/26/22.
|
|
//
|
|
// bridge for em_proxy static lib similar to minimuxer.swift
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public func start_em_proxy(bind_addr: String) {
|
|
let host = NSString(string: bind_addr)
|
|
let host_pointer = UnsafeMutablePointer<CChar>(mutating: host.utf8String)
|
|
let _ = start_emotional_damage(host_pointer)
|
|
}
|
|
|
|
public func stop_em_proxy() {
|
|
stop_emotional_damage()
|
|
}
|