mirror of
https://github.com/SideStore/SideStore.git
synced 2026-03-29 23:05:39 +02:00
27 lines
568 B
Swift
27 lines
568 B
Swift
//
|
|
// EMProxyWrwapper.swift
|
|
// SideStore
|
|
//
|
|
// Created by Magesh K on 22/02/26.
|
|
// Copyright © 2026 SideStore. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
private import em_proxy
|
|
|
|
public func startEMProxy(bind_addr: String) {
|
|
#if targetEnvironment(simulator)
|
|
print("startEMProxy(\(bind_addr) is no-op on simulator")
|
|
#else
|
|
em_proxy.start_em_proxy(bind_addr: bind_addr)
|
|
#endif
|
|
}
|
|
|
|
public func stopEMProxy() {
|
|
#if targetEnvironment(simulator)
|
|
print("stopEMProxy() is no-op on simulator")
|
|
#else
|
|
em_proxy.stop_em_proxy()
|
|
#endif
|
|
}
|