diff options
Diffstat (limited to 'src/plugins/fs/meta.c')
-rw-r--r-- | src/plugins/fs/meta.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/plugins/fs/meta.c b/src/plugins/fs/meta.c index 82713e8b..11ec6449 100644 --- a/src/plugins/fs/meta.c +++ b/src/plugins/fs/meta.c | |||
@@ -408,41 +408,6 @@ getKeywordURIFromList (GladeXML * xml, const char *name) | |||
408 | return keywordURI; | 408 | return keywordURI; |
409 | } | 409 | } |
410 | 410 | ||
411 | char * | ||
412 | updateIntervalToString (GNUNET_Int32Time interval) | ||
413 | { | ||
414 | if (interval == GNUNET_ECRS_SBLOCK_UPDATE_SPORADIC) | ||
415 | return strdup (_("--sporadic update--")); | ||
416 | if (interval == GNUNET_ECRS_SBLOCK_UPDATE_NONE) | ||
417 | return strdup (_("--no update--")); | ||
418 | return GNUNET_get_time_interval_as_fancy_string (interval * | ||
419 | GNUNET_CRON_SECONDS); | ||
420 | } | ||
421 | |||
422 | int | ||
423 | parseTimeInterval (const char *timeSpec, GNUNET_Int32Time * interval) | ||
424 | { | ||
425 | if (timeSpec == NULL) | ||
426 | return GNUNET_SYSERR; | ||
427 | if (0 == strcmp (_("--sporadic update--"), timeSpec)) | ||
428 | *interval = GNUNET_ECRS_SBLOCK_UPDATE_SPORADIC; | ||
429 | else if (0 == strcmp (_("--no update--"), timeSpec)) | ||
430 | *interval = GNUNET_ECRS_SBLOCK_UPDATE_NONE; | ||
431 | else | ||
432 | return parseTime (timeSpec, interval); | ||
433 | return GNUNET_OK; | ||
434 | } | ||
435 | |||
436 | int | ||
437 | tryParseTimeInterval (GladeXML * xml, | ||
438 | const char *intervalComboBoxEntry, | ||
439 | GNUNET_Int32Time * interval) | ||
440 | { | ||
441 | return parseTimeInterval (getEntryLineValue (xml, | ||
442 | intervalComboBoxEntry), | ||
443 | interval); | ||
444 | } | ||
445 | |||
446 | unsigned int | 411 | unsigned int |
447 | getSpinButtonValue (GladeXML * xml, const char *spinButtonName) | 412 | getSpinButtonValue (GladeXML * xml, const char *spinButtonName) |
448 | { | 413 | { |