mirror of
https://github.com/danog/libtgvoip.git
synced 2024-12-04 02:27:46 +01:00
13 lines
386 B
Objective-C
13 lines
386 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
void (*TGVoipLoggingFunction)(NSString *) = NULL;
|
|
|
|
void __tgvoip_call_tglog(const char* format, ...){
|
|
if (TGVoipLoggingFunction != nil) {
|
|
va_list args;
|
|
va_start(args, format);
|
|
TGVoipLoggingFunction([[NSString alloc]initWithFormat:[[NSString alloc] initWithUTF8String:format] arguments:args]);
|
|
va_end(args);
|
|
}
|
|
}
|