diff options
Diffstat (limited to 'src/include/gnunet_psyc_util_lib.h')
-rw-r--r-- | src/include/gnunet_psyc_util_lib.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gnunet_psyc_util_lib.h b/src/include/gnunet_psyc_util_lib.h index eea338ba4..f356b245b 100644 --- a/src/include/gnunet_psyc_util_lib.h +++ b/src/include/gnunet_psyc_util_lib.h | |||
@@ -40,6 +40,28 @@ extern "C" | |||
40 | #include "gnunet_psyc_service.h" | 40 | #include "gnunet_psyc_service.h" |
41 | 41 | ||
42 | 42 | ||
43 | /** | ||
44 | * Create a PSYC message. | ||
45 | * | ||
46 | * @param method_name | ||
47 | * PSYC method for the message. | ||
48 | * @param env | ||
49 | * Environment for the message. | ||
50 | * @param data | ||
51 | * Data payload for the message. | ||
52 | * @param data_size | ||
53 | * Size of @a data. | ||
54 | * | ||
55 | * @return Message header with size information, | ||
56 | * followed by the message parts. | ||
57 | */ | ||
58 | struct GNUNET_MessageHeader * | ||
59 | GNUNET_PSYC_message_create (const char *method_name, | ||
60 | const struct GNUNET_ENV_Environment *env, | ||
61 | const void *data, | ||
62 | size_t data_size); | ||
63 | |||
64 | |||
43 | void | 65 | void |
44 | GNUNET_PSYC_log_message (enum GNUNET_ErrorType kind, | 66 | GNUNET_PSYC_log_message (enum GNUNET_ErrorType kind, |
45 | const struct GNUNET_MessageHeader *msg); | 67 | const struct GNUNET_MessageHeader *msg); |