[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37283 - in gnunet/src: consensus conversation include name
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37283 - in gnunet/src: consensus conversation include namestore |
Date: |
Sat, 18 Jun 2016 23:20:01 +0200 |
Author: grothoff
Date: 2016-06-18 23:20:00 +0200 (Sat, 18 Jun 2016)
New Revision: 37283
Modified:
gnunet/src/consensus/consensus_api.c
gnunet/src/conversation/conversation_api_call.c
gnunet/src/include/gnunet_mq_lib.h
gnunet/src/include/gnunet_peerstore_service.h
gnunet/src/include/gnunet_secretsharing_service.h
gnunet/src/namestore/test_plugin_namestore_flat.conf
Log:
-indentation and comments
Modified: gnunet/src/consensus/consensus_api.c
===================================================================
--- gnunet/src/consensus/consensus_api.c 2016-06-18 21:19:27 UTC (rev
37282)
+++ gnunet/src/consensus/consensus_api.c 2016-06-18 21:20:00 UTC (rev
37283)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2012 GNUnet e.V.
+ Copyright (C) 2012, 2016 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
Modified: gnunet/src/conversation/conversation_api_call.c
===================================================================
--- gnunet/src/conversation/conversation_api_call.c 2016-06-18 21:19:27 UTC
(rev 37282)
+++ gnunet/src/conversation/conversation_api_call.c 2016-06-18 21:20:00 UTC
(rev 37283)
@@ -547,8 +547,6 @@
GNUNET_CONVERSATION_CallEventHandler
event_handler,
void *event_handler_cls)
{
- struct GNUNET_CONVERSATION_Call *call
- = GNUNET_new (struct GNUNET_CONVERSATION_Call);
GNUNET_MQ_hd_fixed_size (call_suspend,
GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_SUSPEND,
struct ClientPhoneSuspendMessage);
@@ -564,6 +562,8 @@
GNUNET_MQ_hd_var_size (call_audio,
GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO,
struct ClientAudioMessage);
+ struct GNUNET_CONVERSATION_Call *call
+ = GNUNET_new (struct GNUNET_CONVERSATION_Call);
struct GNUNET_MQ_MessageHandler handlers[] = {
make_call_suspend_handler (call),
make_call_resume_handler (call),
Modified: gnunet/src/include/gnunet_mq_lib.h
===================================================================
--- gnunet/src/include/gnunet_mq_lib.h 2016-06-18 21:19:27 UTC (rev 37282)
+++ gnunet/src/include/gnunet_mq_lib.h 2016-06-18 21:20:00 UTC (rev 37283)
@@ -268,12 +268,12 @@
/**
* Callback to validate a message of the specified @e type.
* The closure given to @e mv will be this struct (not @e ctx).
- * Using NULL means only size-validation using
+ * Using NULL means only size-validation using
* @e expected_size. In this case, @e expected_size must
* be non-zero.
*/
GNUNET_MQ_MessageValidationCallback mv;
-
+
/**
* Callback, called every time a new message of
* the specified @e type has been receied.
@@ -285,7 +285,7 @@
* Closure for @e mv and @e cb.
*/
void *cls;
-
+
/**
* Type of the message this handler covers, in host byte order.
*/
@@ -317,14 +317,14 @@
* The macro is to be used as follows:
* <code>
* struct GNUNET_MessageTest { ... }; // must be fixed size
- * GNUNET_MQ_hd_fixed_size(test_message,
- * GNUNET_MESSAGE_TYPE_TEST,
- * struct GNUNET_MessageTest);
* static void
- * handle_test_message (void *cls, // the struct GNUNET_MQ_MessageHandler
+ * handle_test_message (void *cls,
* const struct GNUNET_MessageTest *msg)
* { ... }
- *
+ *
+ * GNUNET_MQ_hd_fixed_size(test_message,
+ * GNUNET_MESSAGE_TYPE_TEST,
+ * struct GNUNET_MessageTest);
* struct GNUNET_MQ_MessageHandler handlers[] = {
* make_test_message_handler (),
* GNUNET_MQ_handler_end()
@@ -355,8 +355,8 @@
* The macro is to be used as follows:
* <code>
* struct GNUNET_MessageTest { ... }; // can be variable size
- * GNUNET_MQ_hd_var_size(test_message,
- * GNUNET_MESSAGE_TYPE_TEST,
+ * GNUNET_MQ_hd_var_size(test_message,
+ * GNUNET_MESSAGE_TYPE_TEST,
* struct GNUNET_MessageTest);
* static int
* check_test (void *cls,
@@ -373,8 +373,8 @@
* const char *ctx = cls;
* GNUNET_assert (0 == strcmp ("context", ctx));
* // ...
- * }
- *
+ * }
+ *
* struct GNUNET_MQ_MessageHandler handlers[] = {
* make_test_message_handler ("context"),
* GNUNET_MQ_handler_end()
Modified: gnunet/src/include/gnunet_peerstore_service.h
===================================================================
--- gnunet/src/include/gnunet_peerstore_service.h 2016-06-18 21:19:27 UTC
(rev 37282)
+++ gnunet/src/include/gnunet_peerstore_service.h 2016-06-18 21:20:00 UTC
(rev 37283)
@@ -34,7 +34,6 @@
#define GNUNET_PEERSTORE_SERVICE_H
#include "gnunet_util_lib.h"
-#include "gnunet_common.h"
#ifdef __cplusplus
extern "C"
@@ -139,6 +138,7 @@
const struct GNUNET_PEERSTORE_Record *record,
const char *emsg);
+
/**
* Connect to the PEERSTORE service.
*
Modified: gnunet/src/include/gnunet_secretsharing_service.h
===================================================================
--- gnunet/src/include/gnunet_secretsharing_service.h 2016-06-18 21:19:27 UTC
(rev 37282)
+++ gnunet/src/include/gnunet_secretsharing_service.h 2016-06-18 21:20:00 UTC
(rev 37283)
@@ -168,11 +168,12 @@
* @param ready_peers peers that successfuly participated in establishing
* the shared secret
*/
-typedef void (*GNUNET_SECRETSHARING_SecretReadyCallback) (void *cls,
- struct
GNUNET_SECRETSHARING_Share *my_share,
- struct
GNUNET_SECRETSHARING_PublicKey *public_key,
- unsigned int
num_ready_peers,
- struct
GNUNET_PeerIdentity *ready_peers);
+typedef void
+(*GNUNET_SECRETSHARING_SecretReadyCallback) (void *cls,
+ struct GNUNET_SECRETSHARING_Share
*my_share,
+ struct
GNUNET_SECRETSHARING_PublicKey *public_key,
+ unsigned int num_ready_peers,
+ const struct GNUNET_PeerIdentity
*ready_peers);
/**
@@ -182,8 +183,9 @@
* @param data decrypted value
* @param data_size number of bytes in @a data
*/
-typedef void (*GNUNET_SECRETSHARING_DecryptCallback) (void *cls,
- const struct
GNUNET_SECRETSHARING_Plaintext *plaintext);
+typedef void
+(*GNUNET_SECRETSHARING_DecryptCallback) (void *cls,
+ const struct
GNUNET_SECRETSHARING_Plaintext *plaintext);
/**
Modified: gnunet/src/namestore/test_plugin_namestore_flat.conf
===================================================================
--- gnunet/src/namestore/test_plugin_namestore_flat.conf 2016-06-18
21:19:27 UTC (rev 37282)
+++ gnunet/src/namestore/test_plugin_namestore_flat.conf 2016-06-18
21:20:00 UTC (rev 37283)
@@ -2,4 +2,4 @@
FILENAME = /tmp/gnunet-test-plugin-namestore-sqlite/flatdb
[namestore]
-PREFIX = valgrind --log-file=/home/schanzen/dev/gnunet/src/namestore/vg_log
+# PREFIX = valgrind --log-file=/home/schanzen/dev/gnunet/src/namestore/vg_log
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37283 - in gnunet/src: consensus conversation include namestore,
gnunet <=