*
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
-int add_trial (struct GNUNET_DHTLOG_TrialInfo *trial_info)
+int
+add_trial (struct GNUNET_DHTLOG_TrialInfo *trial_info)
{
return GNUNET_OK;
}
*
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
-int add_round (unsigned int round_type, unsigned int round_count)
+int
+add_round (unsigned int round_type, unsigned int round_count)
{
return GNUNET_OK;
}
*
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
-int add_round_details (unsigned int round_type, unsigned int round_count,
- unsigned int num_messages, unsigned int num_messages_succeded)
+int
+add_round_details (unsigned int round_type, unsigned int round_count,
+ unsigned int num_messages,
+ unsigned int num_messages_succeded)
{
return GNUNET_OK;
}
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
int
-add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity * node)
+add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity *node)
{
*nodeuid = 1337;
return GNUNET_OK;
*/
int
add_generic_stat (const struct GNUNET_PeerIdentity *peer,
- const char *name,
- const char *section, uint64_t value)
+ const char *name, const char *section, uint64_t value)
{
return GNUNET_OK;
}
int
add_query (unsigned long long *sqlqueryuid, unsigned long long queryid,
unsigned int type, unsigned int hops, int succeeded,
- const struct GNUNET_PeerIdentity * node, const GNUNET_HashCode * key)
+ const struct GNUNET_PeerIdentity *node, const GNUNET_HashCode * key)
{
*sqlqueryuid = 17;
return GNUNET_OK;
int
add_route (unsigned long long *sqlqueryuid, unsigned long long queryid,
unsigned int type, unsigned int hops,
- int succeeded, const struct GNUNET_PeerIdentity * node,
- const GNUNET_HashCode * key, const struct GNUNET_PeerIdentity * from_node,
- const struct GNUNET_PeerIdentity * to_node)
+ int succeeded, const struct GNUNET_PeerIdentity *node,
+ const GNUNET_HashCode * key,
+ const struct GNUNET_PeerIdentity *from_node,
+ const struct GNUNET_PeerIdentity *to_node)
{
*sqlqueryuid = 18;
return GNUNET_OK;
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
int
-add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first,
+ const struct GNUNET_PeerIdentity *second)
{
return GNUNET_OK;
}
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
int insert_stat
- (const struct GNUNET_PeerIdentity *peer, unsigned int route_requests,
- unsigned int route_forwards, unsigned int result_requests,
- unsigned int client_requests, unsigned int result_forwards,
- unsigned int gets, unsigned int puts,
- unsigned int data_inserts, unsigned int find_peer_requests,
- unsigned int find_peers_started, unsigned int gets_started,
- unsigned int puts_started, unsigned int find_peer_responses_received,
- unsigned int get_responses_received, unsigned int find_peer_responses_sent,
- unsigned int get_responses_sent)
+ (const struct GNUNET_PeerIdentity *peer, unsigned int route_requests,
+ unsigned int route_forwards, unsigned int result_requests,
+ unsigned int client_requests, unsigned int result_forwards,
+ unsigned int gets, unsigned int puts,
+ unsigned int data_inserts, unsigned int find_peer_requests,
+ unsigned int find_peers_started, unsigned int gets_started,
+ unsigned int puts_started, unsigned int find_peer_responses_received,
+ unsigned int get_responses_received, unsigned int find_peer_responses_sent,
+ unsigned int get_responses_sent)
{
return GNUNET_OK;
}
* @return the handle to the server, or NULL on error
*/
void *
-libgnunet_plugin_dhtlog_dummy_init (void * cls)
+libgnunet_plugin_dhtlog_dummy_init (void *cls)
{
struct GNUNET_DHTLOG_Plugin *plugin = cls;
+
#if DEBUG_DHTLOG
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "DUMMY DHT Logger: initializing.\n");
#endif
- GNUNET_assert(plugin->dhtlog_api == NULL);
- plugin->dhtlog_api = GNUNET_malloc(sizeof(struct GNUNET_DHTLOG_Handle));
+ GNUNET_assert (plugin->dhtlog_api == NULL);
+ plugin->dhtlog_api = GNUNET_malloc (sizeof (struct GNUNET_DHTLOG_Handle));
plugin->dhtlog_api->add_generic_stat = &add_generic_stat;
plugin->dhtlog_api->insert_round = &add_round;
plugin->dhtlog_api->insert_round_details = &add_round_details;
* Shutdown the plugin.
*/
void *
-libgnunet_plugin_dhtlog_dummy_done (void * cls)
+libgnunet_plugin_dhtlog_dummy_done (void *cls)
{
#if DEBUG_DHTLOG
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "DUMMY DHT Logger: shutdown\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "DUMMY DHT Logger: shutdown\n");
#endif
return NULL;
}