aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_namespace.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
commitcddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch)
treeb704e00a3af618b2cd174a7f89514eaebd82a1cf /src/fs/fs_namespace.c
parentbb4fc4f4007988874f910d4de5492f9629301641 (diff)
downloadgnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.tar.gz
gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.zip
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r--src/fs/fs_namespace.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index 236e8d59b..7475896a8 100644
--- a/src/fs/fs_namespace.c
+++ b/src/fs/fs_namespace.c
@@ -36,7 +36,7 @@
36 * Return the name of the directory in which we store 36 * Return the name of the directory in which we store
37 * our local namespaces (or rather, their public keys). 37 * our local namespaces (or rather, their public keys).
38 * 38 *
39 * @param h global fs handle 39 * @param h global fs handle
40 * @return NULL on error, otherwise the name of the directory 40 * @return NULL on error, otherwise the name of the directory
41 */ 41 */
42static char * 42static char *
@@ -61,7 +61,7 @@ get_namespace_directory (struct GNUNET_FS_Handle *h)
61 * Return the name of the directory in which we store 61 * Return the name of the directory in which we store
62 * the update information graph for the given local namespace. 62 * the update information graph for the given local namespace.
63 * 63 *
64 * @param ns namespace handle 64 * @param ns namespace handle
65 * @return NULL on error, otherwise the name of the directory 65 * @return NULL on error, otherwise the name of the directory
66 */ 66 */
67static char * 67static char *
@@ -87,7 +87,7 @@ get_update_information_directory (struct GNUNET_FS_Namespace *ns)
87 87
88/** 88/**
89 * Write the namespace update node graph to a file. 89 * Write the namespace update node graph to a file.
90 * 90 *
91 * @param ns namespace to dump 91 * @param ns namespace to dump
92 */ 92 */
93static void 93static void
@@ -134,7 +134,7 @@ END:
134 134
135/** 135/**
136 * Read the namespace update node graph from a file. 136 * Read the namespace update node graph from a file.
137 * 137 *
138 * @param ns namespace to read 138 * @param ns namespace to read
139 */ 139 */
140static void 140static void
@@ -280,7 +280,7 @@ struct AdvertisementContext
280 280
281/** 281/**
282 * Disconnect from the datastore. 282 * Disconnect from the datastore.
283 * 283 *
284 * @param cls datastore handle 284 * @param cls datastore handle
285 * @param tc scheduler context 285 * @param tc scheduler context
286 */ 286 */
@@ -375,7 +375,7 @@ advertisement_cont (void *cls, int success, const char *msg)
375 375
376 376
377/** 377/**
378 * Publish an advertismement for a namespace. 378 * Publish an advertismement for a namespace.
379 * 379 *
380 * @param h handle to the file sharing subsystem 380 * @param h handle to the file sharing subsystem
381 * @param ksk_uri keywords to use for advertisment 381 * @param ksk_uri keywords to use for advertisment
@@ -965,7 +965,7 @@ struct FindTreeClosure
965 * head of an tree if it is in the 'tree_array' under its respective 965 * head of an tree if it is in the 'tree_array' under its respective
966 * 'tree_id'. 966 * 'tree_id'.
967 * 967 *
968 * In short, we're trying to find the smallest number of tree to 968 * In short, we're trying to find the smallest number of tree to
969 * cover a directed graph. 969 * cover a directed graph.
970 * 970 *
971 * @param cls closure (of type 'struct FindTreeClosure') 971 * @param cls closure (of type 'struct FindTreeClosure')
@@ -988,7 +988,7 @@ find_trees (void *cls, const GNUNET_HashCode * key, void *value)
988 return GNUNET_YES; /* circular */ 988 return GNUNET_YES; /* circular */
989 GNUNET_assert (nsn->tree_id < fc->tree_array_size); 989 GNUNET_assert (nsn->tree_id < fc->tree_array_size);
990 if (fc->tree_array[nsn->tree_id] != nsn) 990 if (fc->tree_array[nsn->tree_id] != nsn)
991 return GNUNET_YES; /* part of "another" (directed) TREE, 991 return GNUNET_YES; /* part of "another" (directed) TREE,
992 * and not root of it, end trace */ 992 * and not root of it, end trace */
993 if (nsn->tree_id == fc->id) 993 if (nsn->tree_id == fc->id)
994 return GNUNET_YES; /* that's our own root (can this be?) */ 994 return GNUNET_YES; /* that's our own root (can this be?) */
@@ -1015,12 +1015,12 @@ find_trees (void *cls, const GNUNET_HashCode * key, void *value)
1015 * produce an update. Namespace updates form a graph where each node 1015 * produce an update. Namespace updates form a graph where each node
1016 * has a name. Each node can have any number of URI/meta-data entries 1016 * has a name. Each node can have any number of URI/meta-data entries
1017 * which can each be linked to other nodes. Cycles are possible. 1017 * which can each be linked to other nodes. Cycles are possible.
1018 * 1018 *
1019 * Calling this function with "next_id" NULL will cause the library to 1019 * Calling this function with "next_id" NULL will cause the library to
1020 * call "ip" with a root for each strongly connected component of the 1020 * call "ip" with a root for each strongly connected component of the
1021 * graph (a root being a node from which all other nodes in the Tree 1021 * graph (a root being a node from which all other nodes in the Tree
1022 * are reachable). 1022 * are reachable).
1023 * 1023 *
1024 * Calling this function with "next_id" being the name of a node will 1024 * Calling this function with "next_id" being the name of a node will
1025 * cause the library to call "ip" with all children of the node. Note 1025 * cause the library to call "ip" with all children of the node. Note
1026 * that cycles within the final tree are possible (including self-loops). 1026 * that cycles within the final tree are possible (including self-loops).