int ctt_start (Domain_t *dp) { #if defined (DDS_TRACE) && defined (CTT_TRACE_RTPS) Writer_t *wp; #endif Reader_t *rp; int error; CTT_ASSERT (dp); error = create_builtin_endpoint (dp, EPB_PARTICIPANT_VOL_SEC_W, 1, 1, 1, 1, 0, NULL, dp->participant.p_meta_ucast, dp->participant.p_meta_mcast, NULL); if (error) return (error); error = create_builtin_endpoint (dp, EPB_PARTICIPANT_VOL_SEC_R, 0, 1, 1, 1, 0, NULL, dp->participant.p_meta_ucast, dp->participant.p_meta_mcast, NULL); if (error) return (error); rp = (Reader_t *) dp->participant.p_builtin_ep [EPB_PARTICIPANT_VOL_SEC_R]; error = hc_request_notification (rp->r_cache, disc_data_available, (uintptr_t) rp); if (error) { fatal_printf ("SPDP: can't register Crypto Token listener!"); return (error); } #if defined (DDS_TRACE) && defined (CTT_TRACE_RTPS) rtps_trace_set (&rp->r_ep, DDS_TRACE_ALL); wp = (Writer_t *) dp->participant.p_builtin_ep [EPB_PARTICIPANT_VOL_SEC_W]; rtps_trace_set (&wp->w_ep, DDS_TRACE_ALL); #endif CTT_ASSERT (dp); return (DDS_RETCODE_OK); }
static int trace_set_fct (Skiplist_t *list, void *node, void *arg) { Endpoint_t *ep, **epp = (Endpoint_t **) node; unsigned *mode = (unsigned *) arg; ARG_NOT_USED (list) ARG_NOT_USED (arg) ep = *epp; if (!ep->rtps) return (1); rtps_trace_set (ep, *mode); return (1); }