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/trg-json-widgets.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/trg-json-widgets.c') diff --git a/src/trg-json-widgets.c b/src/trg-json-widgets.c index 2409ba1..b412c12 100644 --- a/src/trg-json-widgets.c +++ b/src/trg-json-widgets.c @@ -23,6 +23,14 @@ #include "trg-json-widgets.h" #include "util.h" +/* Functions for creating widgets that load/save their state from/to a JSON + * object. This is used by the torrent properties and remote settings dialogs. + * The pattern here is farily similar to that used in local configuration, + * the widget creation functions take a list as an argument, which gets a + * trg_json_widget_desc appended to it. This contains the key, and the function + * pointers for load/save. + */ + void trg_json_widgets_save(GList *list, JsonObject *out) { GList *li; -- cgit v1.2.3