Minor fixs
This commit is contained in:
parent
11f2769425
commit
226c1f0e01
|
@ -17,10 +17,10 @@ You should have received a copy of the GNU General Public License
|
||||||
along with wyebrun. If not, see <http://www.gnu.org/licenses/>.
|
along with wyebrun. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef _WYEBRUN_H
|
#ifndef _WYEBRUN_H
|
||||||
#define _WYEBRUN_H
|
#define _WYEBRUN_H
|
||||||
|
|
||||||
|
|
||||||
#define WYEBPREFIX "-wyeb"
|
#define WYEBPREFIX "-wyeb"
|
||||||
#define WYEBDUNTIL 3
|
#define WYEBDUNTIL 3
|
||||||
|
|
||||||
|
@ -28,14 +28,13 @@ along with wyebrun. If not, see <http://www.gnu.org/licenses/>.
|
||||||
//wyebrun spawns the exe if wyebsend failes
|
//wyebrun spawns the exe if wyebsend failes
|
||||||
char *wyebreq( char *exe, char *req);
|
char *wyebreq( char *exe, char *req);
|
||||||
void wyebsend( char *exe, char *req);
|
void wyebsend( char *exe, char *req);
|
||||||
void wyebuntil( char *exe, int sec); //keep alive. default is 10s
|
void wyebuntil( char *exe, int sec); //keep alive. default is 3s
|
||||||
//loop the wyebuntil. to stop, use g_source_remove
|
//loop the wyebuntil. to stop, use g_source_remove
|
||||||
guint wyebloop( char *exe, int sec, int loopsec);
|
guint wyebloop( char *exe, int sec, int loopsec);
|
||||||
//send stdin to svr and ret data to stdout
|
//send stdin to svr and ret data to stdout
|
||||||
//blank and enter exit it
|
//blank and enter exit it
|
||||||
void wyebclient(char *exe);
|
void wyebclient(char *exe);
|
||||||
|
|
||||||
|
|
||||||
//server
|
//server
|
||||||
typedef char *(*wyebdataf)(char *req);
|
typedef char *(*wyebdataf)(char *req);
|
||||||
//server is spawned with an arg the caller
|
//server is spawned with an arg the caller
|
||||||
|
|
Loading…
Reference in New Issue
Block a user