diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-06-11 05:30:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-06-11 05:30:19 +0000 |
commit | 8db4f9403d80faa67eaf85a2d077c35670596c4d (patch) | |
tree | 8aca077b466b92c2d6a296e186bad56f78f08f88 /src/include/gnunet_configuration_lib.h | |
parent | 4acd295ad6076d3c33f62d40324106d3308850ca (diff) | |
download | gnunet-8db4f9403d80faa67eaf85a2d077c35670596c4d.tar.gz gnunet-8db4f9403d80faa67eaf85a2d077c35670596c4d.zip |
get time cfg api added
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index fefc6884a..3f7d099ce 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -38,6 +38,7 @@ extern "C" | |||
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #include "gnunet_common.h" | 40 | #include "gnunet_common.h" |
41 | #include "gnunet_time_lib.h" | ||
41 | 42 | ||
42 | /** | 43 | /** |
43 | * A configuration object. | 44 | * A configuration object. |
@@ -99,6 +100,17 @@ int GNUNET_CONFIGURATION_get_value_number (struct GNUNET_CONFIGURATION_Handle | |||
99 | unsigned long long *number); | 100 | unsigned long long *number); |
100 | 101 | ||
101 | /** | 102 | /** |
103 | * Get a configuration value that should be a relative time. | ||
104 | * | ||
105 | * @param time set to the time value stored in the configuration | ||
106 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | ||
107 | */ | ||
108 | int GNUNET_CONFIGURATION_get_value_time (struct GNUNET_CONFIGURATION_Handle | ||
109 | *cfg, const char *section, | ||
110 | const char *option, | ||
111 | struct GNUNET_TIME_Relative *time); | ||
112 | |||
113 | /** | ||
102 | * Test if we have a value for a particular option | 114 | * Test if we have a value for a particular option |
103 | * @return GNUNET_YES if so, GNUNET_NO if not. | 115 | * @return GNUNET_YES if so, GNUNET_NO if not. |
104 | */ | 116 | */ |