textclient_server_init.c (608B)
1 /* ISC license. */ 2 3 #include <stdlib.h> 4 5 #include <skalibs/cspawn.h> 6 #include <skalibs/textclient.h> 7 8 int textclient_server_init (textmessage_receiver *in, textmessage_sender *syncout, textmessage_sender *asyncout, char const *before, size_t beforelen, char const *after, size_t afterlen, tain const *deadline, tain *stamp) 9 { 10 return getenv(SKALIBS_CHILD_SPAWN_FDS_ENVVAR) ? 11 textclient_server_init_frompipe(in, syncout, asyncout, before, beforelen, after, afterlen, deadline, stamp) : 12 textclient_server_init_fromsocket(in, syncout, asyncout, before, beforelen, after, afterlen, deadline, stamp) ; 13 }