Skip to content

Commit c151b90

Browse files
committed
moved swift binding to be within the repo
1 parent 24fdd24 commit c151b90

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

em_proxy.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// em_proxy.swift
3+
// SideStore
4+
//
5+
// Created by Jackson Coxson on 10/26/22.
6+
//
7+
// bridge for em_proxy static lib similar to minimuxer.swift
8+
//
9+
10+
import Foundation
11+
12+
public func start_em_proxy(bind_addr: String) {
13+
let host = NSString(string: bind_addr)
14+
let host_pointer = UnsafeMutablePointer<CChar>(mutating: host.utf8String)
15+
let _ = start_emotional_damage(host_pointer)
16+
}
17+
18+
public func stop_em_proxy() {
19+
stop_emotional_damage()
20+
}

0 commit comments

Comments
 (0)