(rpc) remove TR_RPC_TORRENT_CLOSING. formalize "torrent-list"'s response in the rpc spec.

This commit is contained in:
Charles Kerr
2008-05-22 19:24:11 +00:00
parent 1279b6ffff
commit 9fdb8afdf0
6 changed files with 50 additions and 44 deletions

View File

@@ -302,7 +302,7 @@ onRPCIdle( void * vdata )
case TR_RPC_TORRENT_STOPPED:
/* this should be automatic */
break;
case TR_RPC_TORRENT_CLOSING:
case TR_RPC_TORRENT_REMOVING:
/* FIXME */
break;
case TR_RPC_TORRENT_CHANGED:
@@ -326,7 +326,7 @@ onRPCChanged( tr_handle * handle UNUSED,
struct rpc_data * data = g_new0( struct rpc_data, 1 );
data->type = type;
data->torrentId = tor ? tr_torrentId( tor ) : -1;
data->tor = type == TR_RPC_TORRENT_CLOSING ? NULL : tor;
data->tor = type == TR_RPC_TORRENT_REMOVING ? NULL : tor;
data->cbdata = cbdata;
g_idle_add( onRPCIdle, data );
}