1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 21:12:05 +00:00

add basic add torrent ability for ipc

This commit is contained in:
Mitchell Livingston 2007-07-18 01:29:26 +00:00
parent be99468373
commit f0a4860166

View file

@ -3217,17 +3217,16 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
- (BOOL) ipcAddTorrents: (NSArray *) torrents - (BOOL) ipcAddTorrents: (NSArray *) torrents
{ {
/* 'torrents' is NSArray of NSString torrent file paths, should int oldCount = [fTorrents count];
return NO if torrent fails to load */
return NO; [self openFiles: torrents];
return [fTorrents count] > oldCount;
} }
- (BOOL) ipcAddTorrentFile: (NSString *) path - (BOOL) ipcAddTorrentFile: (NSString *) path
directory: (NSString *) dir directory: (NSString *) dir
{ {
/* 'path' is path to torrent file, 'dir' is the directory it
should download it's files to and may be nil, should return NO
if torrent fails to load */
return NO; return NO;
} }