From 7bc8fe632f29a875659f223ad1e9aa035c56f46c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 30 Nov 2011 18:54:29 +0000 Subject: add some comments at the top of some files, also add a timeout of 20 seconds for curl requests --- src/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index bb21503..f79d3ed 100644 --- a/src/main.c +++ b/src/main.c @@ -40,6 +40,15 @@ #include "trg-client.h" #include "util.h" +/* The file with the main() function. It converts arguments into a NULL terminated + * array, with relative paths converted to absolute paths. + * + * Much of the code here is to optionally handle passing torrent files/URLs to + * a first instance. UNIX can use libunique (should alternatively use + * GApplication for GNOME3). Windows uses the mailslot feature in the + * native Win32 API, so there is no dependency on dbus etc. + */ + #define TRG_LIBUNIQUE_DOMAIN "uk.org.eth0.trg" #define TRG_MAILSLOT_NAME "\\\\.\\mailslot\\TransmissionRemoteGTK" //Name given to the Mailslot #define MAILSLOT_BUFFER_SIZE 1024*32 -- cgit v1.2.3