op1 = GNUNET_TESTBED_operation_create_ (&op1,
start_cb,
release_cb,
- OP_PEER_CREATE, /* irrelavant here */
- NULL);
+ OP_PEER_CREATE);
+
GNUNET_assert (NULL != op1);
op2 = GNUNET_TESTBED_operation_create_ (&op2,
start_cb,
release_cb,
- OP_PEER_CREATE, /* irrelavant here */
- NULL);
+ OP_PEER_CREATE);
GNUNET_TESTBED_operation_queue_insert_ (q1, op1);
GNUNET_TESTBED_operation_queue_insert_ (q2, op1);
GNUNET_TESTBED_operation_queue_insert_ (q1, op2);
*/
struct OperationQueue **queues;
- /**
- * Pointer to operation's data
- */
- void *data;
-
/**
* The Operation ID
*/
* @param start function to call to start the operation
* @param release function to call to close down the operation
* @param type the type of the operation
- * @param data operation's relavant data
* @return handle to the operation
*/
struct GNUNET_TESTBED_Operation *
GNUNET_TESTBED_operation_create_ (void *cls,
OperationStart start,
OperationRelease release,
- enum OperationType type,
- void *data)
+ enum OperationType type)
{
struct GNUNET_TESTBED_Operation *op;
op->release = release;
op->cb_cls = cls;
op->type = type;
- op->data = data;
return op;
}
GNUNET_TESTBED_operation_create_ (void *cls,
OperationStart start,
OperationRelease release,
- enum OperationType type,
- void *data);
+ enum OperationType type);
/**