Beispiel #1
0
void msg_stop (Domain_t *dp)
{
	delete_builtin_endpoint (dp, EPB_PARTICIPANT_MSG_R);
	delete_builtin_endpoint (dp, EPB_PARTICIPANT_MSG_W);
#if defined (DDS_SECURITY) && defined (DDS_NATIVE_SECURITY)
	if (NATIVE_SECURITY (dp)) {
		delete_builtin_endpoint (dp, EPB_PARTICIPANT_MSG_SEC_R);
		delete_builtin_endpoint (dp, EPB_PARTICIPANT_MSG_SEC_W);
	}
#endif
	DDS_DomainParticipant_unregister_type ((DDS_DomainParticipant) dp,
						     dds_participant_msg_ts,
						     "ParticipantMessageData");
}
Beispiel #2
0
DDS_ReturnCode_t DDS_DynamicTypeSupport_unregister_type (DDS_DynamicTypeSupport dts,
						         DDS_DomainParticipant  p,
						         const DDS_ObjectName   name)
{
	TypeSupport_t	*ts = (TypeSupport_t *) dts;

	if (!p || !dts
#ifdef DDS_TYPECODE
	    || ts->ts_origin != TSO_Dynamic
#endif
	                                   )
		return (DDS_RETCODE_BAD_PARAMETER);

	return (DDS_DomainParticipant_unregister_type (p, ts, name));
}
Beispiel #3
0
void free_TestType_type (DDS_DomainParticipant part)
{
	DDS_ReturnCode_t	error;

	if (!dds_TestType_ts)
		return;

	error = DDS_DomainParticipant_unregister_type (part, dds_TestType_ts, _tsm_types->name);
	if (error) {
		printf ("DDS_DomainParticipant_unregister_type() failed! (error=%u)\r\n", error);
		return;
	}
	DDS_DynamicType_free (dds_TestType_ts);
	dds_TestType_ts = NULL;
}
Beispiel #4
0
void free_HelloWorldData_type (DDS_DomainParticipant part)
{
	DDS_ReturnCode_t	error;

	if (!dds_HelloWorld_ts)
		return;

	error = DDS_DomainParticipant_unregister_type (part, dds_HelloWorld_ts, "HelloWorldData");
	if (error) {
		printf ("DDS_DomainParticipant_unregister_type() failed! (error=%u)\r\n", error);
		return;
	}
	DDS_DynamicType_free (dds_HelloWorld_ts);
	dds_HelloWorld_ts = NULL;
}
Beispiel #5
0
static int delete_type (Skiplist_t *list, void *node, void *arg)
{
	TopicType_t		*ttp, **ttpp = (TopicType_t **) node;
	DDS_DomainParticipant	p = (DDS_DomainParticipant) arg;

	ARG_NOT_USED (list)

	ttp = *ttpp;
	if ((ttp->flags & (EF_BUILTIN | EF_LOCAL)) == EF_LOCAL) {
		dtrc_printf ("participant_delete_contained_entitities: unregister Type (%s)\r\n", 
							str_ptr (ttp->type_name));
		DDS_DomainParticipant_unregister_type (p, ttp->type_support, 
							str_ptr (ttp->type_name));
	}
	return (1);
}
Beispiel #6
0
static int delete_type_support (Skiplist_t *list, void *node, void *arg)
{
	TopicType_t			*typep, **typepp = (TopicType_t **) node;
	struct type_sup_rem_state_st	*state = (struct type_sup_rem_state_st *) arg;

	ARG_NOT_USED (list)

	typep = *typepp;
	if ((typep->flags & EF_LOCAL) != 0 &&
	    typep->type_support == state->ts) {
		state->ret = DDS_DomainParticipant_unregister_type (state->part,
					    state->ts,
					    (void *) str_ptr (typep->type_name));
		return (0);
	}
	return (1);
}