Need help on interface

Folks,


We have to have an interface from C to Swift ( C --> Swift ), since we are trying to use SystemExtensions ( replacing few Kexts ) for Catalina+.


I can use some of the ideas ( including @Eskimo's ) to interface directly from C to invoke Swift routine, as long as the files are under same target.


Since the daemon ( being sorta command line App with deamonization ) would be running as a separate process then any of the System Extension(s). We need some form of IPC. The XPC service generates obj-c code by default, modifying them to swift equivalent is difficult, since it can not find class/protocols in another swift file ( must need more hacks inside Xcode project linking etc - which I don't know much.


So can someone help how to go about ---

1) Direct invokation probably not going to work ( i,e, cross process )

2) What IPC's can be used between C and Swift processes ?



Thanks much!

-Prokash

Hi Prokash,


Any luck, could you figure out way to do IPC between your C and Swift processes?


Thanks

Need help on interface
 
 
Q