/** * Start the set operation. * * @param cls closure, unused */ static void start (void *cls) { struct GNUNET_MessageHeader context_msg; context_msg.size = htons (sizeof context_msg); context_msg.type = htons (GNUNET_MESSAGE_TYPE_DUMMY); listen_handle = GNUNET_SET_listen (config, GNUNET_SET_OPERATION_UNION, &app_id, &listen_cb, NULL); oh1 = GNUNET_SET_prepare (&local_id, &app_id, &context_msg, GNUNET_SET_RESULT_SYMMETRIC, &result_cb_set1, NULL); GNUNET_SET_commit (oh1, set1); }
/** * Start the set operation. * * @param cls closure, unused */ static void start (void *cls) { struct GNUNET_SET_OperationHandle *oh; struct GNUNET_MessageHeader context_msg; context_msg.size = htons (sizeof context_msg); context_msg.type = htons (GNUNET_MESSAGE_TYPE_TEST); listen_handle = GNUNET_SET_listen (config, GNUNET_SET_OPERATION_INTERSECTION, &app_id, &listen_cb, NULL); oh = GNUNET_SET_prepare (&local_id, &app_id, &context_msg, GNUNET_SET_RESULT_FULL, &result_cb_set1, NULL); GNUNET_SET_commit (oh, set1); }