diff options
author | fcolin | 1998-06-16 09:26:08 +0000 |
---|---|---|
committer | fcolin | 1998-06-16 09:26:08 +0000 |
commit | f8e8025b75c0a4588849843853b72a3039bdb7f6 (patch) | |
tree | 1b13d5fe61bf51693e01acb4d836fe1fbcc96c2c /src/testbus.c | |
parent | fe2f9c773e09827055859cc5ceb4893f0381a8a2 (diff) | |
download | ivy-c-f8e8025b75c0a4588849843853b72a3039bdb7f6.zip ivy-c-f8e8025b75c0a4588849843853b72a3039bdb7f6.tar.gz ivy-c-f8e8025b75c0a4588849843853b72a3039bdb7f6.tar.bz2 ivy-c-f8e8025b75c0a4588849843853b72a3039bdb7f6.tar.xz |
Modif timer.c
Diffstat (limited to 'src/testbus.c')
-rw-r--r-- | src/testbus.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/testbus.c b/src/testbus.c index e42094d..db52985 100644 --- a/src/testbus.c +++ b/src/testbus.c @@ -49,6 +49,21 @@ void HandleStdin( Channel channel, int fd, void *data) else printf( "No Application %s!!!\n",arg); } } + if ( strcmp(cmd, "dieall-yes-i-am-sure") == 0 ) + { + arg = GetApplicationList(); + arg = strtok( arg, " " ); + while ( arg ) + { + app = GetApplication( arg ); + if ( app ) + SendDieMsg( app ); + else printf( "No Application %s!!!\n",arg); + arg = strtok( NULL, " "); + } + + } + if ( strcmp(cmd, "bind" ) == 0 ) { arg = strtok( NULL, "'" ); @@ -122,7 +137,7 @@ void ApplicationCallback( BusClientPtr app, void *user_data, BusApplicationEvent switch ( event ) { case BusApplicationConnected: app_count++; - printf("Application(%d): %s ready on %s\n",app_count, appname, host); + printf("Application(%s): ready on %s\n", appname, host); printf("Application(%s): Begin Messages\n", appname); msgList = GetApplicationMessages( app ); while( *msgList ) @@ -133,10 +148,10 @@ void ApplicationCallback( BusClientPtr app, void *user_data, BusApplicationEvent break; case BusApplicationDisconnected: app_count--; - printf("Application(%d): %s bye on %s\n",app_count, appname, host); + printf("Application(%s): bye on %s\n", appname, host); break; default: - printf("Application(%d): %s unkown event %d\n", app_count, appname, event); + printf("Application(%s): unkown event %d\n", appname, event); break; } |