summaryrefslogtreecommitdiff
path: root/swift/src/IceObjc/Process.mm
blob: f96d4830a3caa314b74a6ab9fca413a63c3b4af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#import "Process.h"
#import "Convert.h"

@implementation ICEProcess

-(std::shared_ptr<Ice::Process>) process
{
    return std::static_pointer_cast<Ice::Process>(self.cppObject);
}

-(void) shutdown
{
    // This fuction does not use current so we do not pass it from Swift
    self.process->shutdown(Ice::Current{});
}

-(void) writeMessage:(NSString*)message fd:(int32_t)fd
{
    // This function does not use current so we do not pass it from Swift
    self.process->writeMessage(fromNSString(message), fd, Ice::Current{});
}

@end