diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-11-30 18:54:29 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-11-30 18:54:29 +0000 |
commit | 7bc8fe632f29a875659f223ad1e9aa035c56f46c (patch) | |
tree | 8a13af1000337feade93762295b213283b03d089 /src/trg-json-widgets.c | |
parent | 6df6b7c2a2383d01a6fc20e597f48b0168ccfeb5 (diff) |
add some comments at the top of some files, also add a timeout of 20 seconds for curl requests
Diffstat (limited to 'src/trg-json-widgets.c')
-rw-r--r-- | src/trg-json-widgets.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |