aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_common.h')
-rw-r--r--src/fs/gnunet-fs-gtk_common.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk_common.h b/src/fs/gnunet-fs-gtk_common.h
index b5048d7c..30766956 100644
--- a/src/fs/gnunet-fs-gtk_common.h
+++ b/src/fs/gnunet-fs-gtk_common.h
@@ -147,5 +147,48 @@ GNUNET_FS_GTK_get_description_from_metadata (
147void 147void
148GNUNET_FS_GTK_handle_uri (const struct GNUNET_FS_Uri *uri); 148GNUNET_FS_GTK_handle_uri (const struct GNUNET_FS_Uri *uri);
149 149
150/**
151 * Finds largest namespace rating.
152 * Used to calculate a rating for newly discovered namespaces.
153 * Returns from cache, if possible.
154 *
155 * @return largest namespace rating. Might be negative and even. INT_MIN means
156 * that no namespaces are known.
157 */
158int
159GNUNET_GTK_find_largest_namespace_rating ();
160
161/**
162 * Sets largest namespace rating.
163 * Used to change cached largest namespace rating, when namespace list
164 * was changed in a way that is easy to track.
165 * If namespace list was changed in a way that makes it difficult to
166 * decide upon the new value, set new value to INT_MIN.
167 *
168 * @param new_value new value for the rating.
169 */
170void
171GNUNET_GTK_set_largest_namespace_rating (int new_value);
172
173/**
174 * Converts a GtkTreeRowReference to a GtkTreeIter.
175 *
176 * @param rr row reference
177 * @param iter pointer to an iter structure to fill
178 * @return GNUNET_OK if iter was filled, GNUNET_SYSERR otherwise
179 */
180int
181GNUNET_GTK_get_iter_from_reference (GtkTreeRowReference *rr, GtkTreeIter *iter);
182
183/**
184 * Creates a GtkTreeRowReference from a GtkTreeIter.
185 *
186 * @param model a model to reference
187 * @param iter an iter that points to a row in the model
188 * @return newly created reference or NULL in case of error
189 */
190GtkTreeRowReference *
191GNUNET_GTK_get_reference_from_iter (GtkTreeModel *model, GtkTreeIter *iter);
192
150#endif 193#endif
151/* end of gnunet-fs-gtk-common.h */ 194/* end of gnunet-fs-gtk-common.h */