mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-25 04:16:58 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
23 lines
364 B
Swift
23 lines
364 B
Swift
//
|
|
// main.swift
|
|
// EndpointSecurity
|
|
//
|
|
// Created by Vlad Gorlov on 18.06.21.
|
|
//
|
|
|
|
import Foundation
|
|
import EndpointSecurity
|
|
|
|
var client: OpaquePointer?
|
|
|
|
// Create the client
|
|
let res = es_new_client(&client) { (client, message) in
|
|
// Do processing on the message received
|
|
}
|
|
|
|
if res != ES_NEW_CLIENT_RESULT_SUCCESS {
|
|
exit(EXIT_FAILURE)
|
|
}
|
|
|
|
dispatchMain()
|