internal void CreateListener(out OpenSplice.Gapi.gapi_domainParticipantListener gapiListener) { onInconsistentTopicDelegate = Topic_PrivateOnInconsistentTopic; onOfferedDeadlineMissedDelegate = PrivateOfferedDeadlineMissed; onOfferedIncompatibleQosDelegate = PrivateOfferedIncompatibleQos; onLivelinessLostDelegate = PrivateLivelinessLost; onPublicationMatchDelegate = PrivatePublicationMatched; onRequestedDeadlineMissedDelegate = PrivateRequestedDeadlineMissed; onRequestedIncompatibleQosDelegate = PrivateRequestedIncompatibleQos; onSampleRejectedDelegate = PrivateSampleRejected; onLivelinessChangedDelegate = PrivateLivelinessChanged; onDataAvailableDelegate = PrivateDataAvailable; onSubscriptionMatchDelegate = PrivateSubscriptionMatched; onSampleLostDelegate = PrivateSampleLost; onDataOnReadersDelegate = PrivateDataOnReaders; gapiListener = new DDS.OpenSplice.Gapi.gapi_domainParticipantListener(); gapiListener.listener_data = IntPtr.Zero; gapiListener.on_inconsistent_topic = onInconsistentTopicDelegate; gapiListener.on_offered_deadline_missed = onOfferedDeadlineMissedDelegate; gapiListener.on_offered_incompatible_qos = onOfferedIncompatibleQosDelegate; gapiListener.on_liveliness_lost = onLivelinessLostDelegate; gapiListener.on_publication_match = onPublicationMatchDelegate; gapiListener.on_requested_deadline_missed = onRequestedDeadlineMissedDelegate; gapiListener.on_requested_incompatible_qos = onRequestedIncompatibleQosDelegate; gapiListener.on_sample_rejected = onSampleRejectedDelegate; gapiListener.on_liveliness_changed = onLivelinessChangedDelegate; gapiListener.on_data_available = onDataAvailableDelegate; gapiListener.on_subscription_match = onSubscriptionMatchDelegate; gapiListener.on_sample_lost = onSampleLostDelegate; gapiListener.on_data_on_readers = onDataOnReadersDelegate; }
public DomainParticipantListenerMarshaler(ref OpenSplice.Gapi.gapi_domainParticipantListener listener) : this() { CopyIn(ref listener, GapiPtr, 0); cleanupRequired = true; }