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:
parent
be99468373
commit
f0a4860166
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue