[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29561 - in gnunet/src: include psyc
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29561 - in gnunet/src: include psyc |
Date: |
Wed, 25 Sep 2013 19:45:56 +0200 |
Author: tg
Date: 2013-09-25 19:45:55 +0200 (Wed, 25 Sep 2013)
New Revision: 29561
Modified:
gnunet/src/include/gnunet_psyc_service.h
gnunet/src/psyc/psyc_api.c
Log:
psyc service skeleton
Modified: gnunet/src/include/gnunet_psyc_service.h
===================================================================
--- gnunet/src/include/gnunet_psyc_service.h 2013-09-25 17:45:03 UTC (rev
29560)
+++ gnunet/src/include/gnunet_psyc_service.h 2013-09-25 17:45:55 UTC (rev
29561)
@@ -355,6 +355,7 @@
*/
enum GNUNET_PSYC_MasterTransmitFlags
{
+ GNUNET_PSYC_MASTER_TRANSMIT_NONE = 0,
/**
* Whether this message should reset the channel state,
* i.e. remove all previously stored state variables.
@@ -507,8 +508,12 @@
/**
* Flags for transmitting messages to the channel master by a slave.
*/
-enum GNUNET_PSYC_SlaveTransmitFlags;
+enum GNUNET_PSYC_SlaveTransmitFlags
+{
+ GNUNET_PSYC_SLAVE_TRANSMIT_NONE = 0
+};
+
/**
* Handle for a pending PSYC transmission operation.
*/
Modified: gnunet/src/psyc/psyc_api.c
===================================================================
--- gnunet/src/psyc/psyc_api.c 2013-09-25 17:45:03 UTC (rev 29560)
+++ gnunet/src/psyc/psyc_api.c 2013-09-25 17:45:55 UTC (rev 29561)
@@ -42,48 +42,72 @@
* Used to match calls to #GNUNET_PSYC_JoinCallback to the
* corresponding calls to GNUNET_PSYC_join_decision().
*/
-struct GNUNET_PSYC_JoinHandle;
+struct GNUNET_PSYC_JoinHandle
+{
+};
+
/**
* Handle for the master of a PSYC channel.
*/
-struct GNUNET_PSYC_Master;
+struct GNUNET_PSYC_Master
+{
+};
+
/**
* Handle for a pending PSYC transmission operation.
*/
-struct GNUNET_PSYC_MasterTransmitHandle;
+struct GNUNET_PSYC_MasterTransmitHandle
+{
+};
+
/**
* Handle for a PSYC channel slave.
*/
-struct GNUNET_PSYC_Slave;
+struct GNUNET_PSYC_Slave
+{
+};
+
/**
* Handle for a pending PSYC transmission operation.
*/
-struct GNUNET_PSYC_SlaveTransmitHandle;
+struct GNUNET_PSYC_SlaveTransmitHandle
+{
+};
+
/**
* Handle to access PSYC channel operations for both the master and slaves.
*/
-struct GNUNET_PSYC_Channel;
+struct GNUNET_PSYC_Channel
+{
+};
+
/**
* Handle to a story telling operation.
*/
-struct GNUNET_PSYC_Story;
+struct GNUNET_PSYC_Story
+{
+};
-struct GNUNET_PSYC_StateQuery;
+struct GNUNET_PSYC_StateQuery
+{
+};
+
+
/**
* Function to call with the decision made for a join request.
*
@@ -114,9 +138,12 @@
const char *method_name,
const struct GNUNET_ENV_Environment *env,
const void *data,
- size_t data_size);
+ size_t data_size)
+{
+}
+
/**
* Start a PSYC master channel.
*
@@ -150,7 +177,10 @@
enum GNUNET_PSYC_Policy policy,
GNUNET_PSYC_Method method,
GNUNET_PSYC_JoinCallback join_cb,
- void *cls);
+ void *cls)
+{
+ return NULL;
+}
/**
@@ -171,7 +201,10 @@
const struct GNUNET_ENV_Environment *env,
GNUNET_PSYC_MasterTransmitNotify notify,
void *notify_cls,
- enum GNUNET_PSYC_MasterTransmitFlags flags);
+ enum GNUNET_PSYC_MasterTransmitFlags flags)
+{
+ return NULL;
+}
/**
@@ -180,18 +213,24 @@
* @param th Handle of the request that is being aborted.
*/
void
-GNUNET_PSYC_master_transmit_cancel (struct GNUNET_PSYC_MasterTransmitHandle
*th);
+GNUNET_PSYC_master_transmit_cancel (struct GNUNET_PSYC_MasterTransmitHandle
*th)
+{
+}
+
/**
* Stop a PSYC master channel.
*
* @param master PSYC channel master to stop.
*/
void
-GNUNET_PSYC_master_stop (struct GNUNET_PSYC_Master *master);
+GNUNET_PSYC_master_stop (struct GNUNET_PSYC_Master *master)
+{
+}
+
/**
* Join a PSYC channel.
*
@@ -234,7 +273,10 @@
const char *method_name,
const struct GNUNET_ENV_Environment *env,
const void *data,
- size_t data_size);
+ size_t data_size)
+{
+ return NULL;
+}
/**
@@ -246,9 +288,12 @@
* @param slave Slave handle.
*/
void
-GNUNET_PSYC_slave_part (struct GNUNET_PSYC_Slave *slave);
+GNUNET_PSYC_slave_part (struct GNUNET_PSYC_Slave *slave)
+{
+}
+
/**
* Request a message to be sent to the channel master.
*
@@ -266,7 +311,10 @@
const struct GNUNET_ENV_Environment *env,
GNUNET_PSYC_SlaveTransmitNotify notify,
void *notify_cls,
- enum GNUNET_PSYC_SlaveTransmitFlags flags);
+ enum GNUNET_PSYC_SlaveTransmitFlags flags)
+{
+ return NULL;
+}
/**
@@ -275,9 +323,12 @@
* @param th Handle of the request that is being aborted.
*/
void
-GNUNET_PSYC_slave_transmit_cancel (struct GNUNET_PSYC_SlaveTransmitHandle *th);
+GNUNET_PSYC_slave_transmit_cancel (struct GNUNET_PSYC_SlaveTransmitHandle *th)
+{
+}
+
/**
* Convert a channel @a master to a @e channel handle to access the @e channel
APIs.
*
@@ -285,7 +336,10 @@
* @return Channel handle, valid for as long as @a master is valid.
*/
struct GNUNET_PSYC_Channel *
-GNUNET_PSYC_master_get_channel (struct GNUNET_PSYC_Master *master);
+GNUNET_PSYC_master_get_channel (struct GNUNET_PSYC_Master *master)
+{
+ return NULL;
+}
/**
@@ -295,7 +349,10 @@
* @return Channel handle, valid for as long as @a slave is valid.
*/
struct GNUNET_PSYC_Channel *
-GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slave);
+GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slave)
+{
+ return NULL;
+}
/**
@@ -323,9 +380,12 @@
GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel,
const struct GNUNET_CRYPTO_EccPublicSignKey
*slave_key,
uint64_t announced_at,
- uint64_t effective_since);
+ uint64_t effective_since)
+{
+}
+
/**
* Remove a slave from the channel's membership list.
*
@@ -350,9 +410,12 @@
void
GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel,
const struct GNUNET_CRYPTO_EccPublicSignKey
*slave_key,
- uint64_t announced_at);
+ uint64_t announced_at)
+{
+}
+
/**
* Request to be told the message history of the channel.
*
@@ -368,7 +431,10 @@
* @param finish_cb Function to call when the requested story has been fully
* told (counting message IDs might not suffice, as some messages
* might be secret and thus the listener would not know the story is
- * finished without being told explicitly); once this function
+ * finished without being told explicitly)
+{
+ return NULL;
+} once this function
* has been called, the client must not call
* GNUNET_PSYC_channel_story_tell_cancel() anymore.
* @param cls Closure for the callbacks.
@@ -380,7 +446,10 @@
uint64_t end_message_id,
GNUNET_PSYC_Method method,
GNUNET_PSYC_FinishCallback *finish_cb,
- void *cls);
+ void *cls)
+{
+ return NULL;
+}
/**
@@ -392,9 +461,12 @@
* @param story Story telling operation to stop.
*/
void
-GNUNET_PSYC_channel_story_tell_cancel (struct GNUNET_PSYC_Story *story);
+GNUNET_PSYC_channel_story_tell_cancel (struct GNUNET_PSYC_Story *story)
+{
+}
+
/**
* Retrieve the best matching channel state variable.
*
@@ -414,7 +486,10 @@
GNUNET_PSYC_channel_state_get (struct GNUNET_PSYC_Channel *channel,
const char *full_name,
GNUNET_PSYC_StateCallback cb,
- void *cb_cls);
+ void *cb_cls)
+{
+ return NULL;
+}
/**
@@ -437,7 +512,10 @@
GNUNET_PSYC_channel_state_get_prefix (struct GNUNET_PSYC_Channel *channel,
const char *name_prefix,
GNUNET_PSYC_StateCallback cb,
- void *cb_cls);
+ void *cb_cls)
+{
+ return NULL;
+}
/**
@@ -446,7 +524,10 @@
* @param query Handle for the operation to cancel.
*/
void
-GNUNET_PSYC_channel_state_get_cancel (struct GNUNET_PSYC_StateQuery *query);
+GNUNET_PSYC_channel_state_get_cancel (struct GNUNET_PSYC_StateQuery *query)
+{
+}
+
/* end of psyc_api.c */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29561 - in gnunet/src: include psyc,
gnunet <=