diff --git a/wyebrun.c b/wyebrun.c index 691368d..2dfb1da 100644 --- a/wyebrun.c +++ b/wyebrun.c @@ -360,6 +360,10 @@ char *wyebreq(char *exe, char *req) { return request(exe, CSdata, pid(), req); } +void wyebsend(char *exe, char *req) +{ + request(exe, CSdata, NULL, req); +} void wyebuntil(char *exe, int sec) { if (!lastsec) diff --git a/wyebrun.h b/wyebrun.h index 4fa56e9..5835155 100644 --- a/wyebrun.h +++ b/wyebrun.h @@ -27,6 +27,7 @@ along with wyebrun. If not, see . //client //wyebrun spawns the exe if wyebsend failes char *wyebreq( char *exe, char *req); +void wyebsend( char *exe, char *req); void wyebuntil( char *exe, int sec); //keep alive. default is 10s //loop the wyebuntil. to stop, use g_source_remove guint wyebloop( char *exe, int sec, int loopsec); @@ -44,4 +45,5 @@ void wyebwatch(char *exe, char *caller, wyebdataf func); //the caller is used to send the res meaning we are ready. //3 sec left or client will die + #endif //_WYEBRUN_H