Update auto-generated bindings
[ldk-java] / ts / structs / MessageSendEvent.ts
index 920df64785ebe5f49170d0a225326367977ba815..c02e9e37e2246cb172698a7a7874d8a654772e6e 100644 (file)
@@ -52,140 +52,154 @@ export default class MessageSendEvent extends CommonBase {
                if (raw_val instanceof bindings.LDKMessageSendEvent.BroadcastChannelUpdate) {
                        return new BroadcastChannelUpdate(this.ptr, raw_val);
                }
+               if (raw_val instanceof bindings.LDKMessageSendEvent.SendChannelUpdate) {
+                       return new SendChannelUpdate(this.ptr, raw_val);
+               }
                if (raw_val instanceof bindings.LDKMessageSendEvent.HandleError) {
                        return new HandleError(this.ptr, raw_val);
                }
-               if (raw_val instanceof bindings.LDKMessageSendEvent.PaymentFailureNetworkUpdate) {
-                       return new PaymentFailureNetworkUpdate(this.ptr, raw_val);
-               }
                if (raw_val instanceof bindings.LDKMessageSendEvent.SendChannelRangeQuery) {
                        return new SendChannelRangeQuery(this.ptr, raw_val);
                }
                if (raw_val instanceof bindings.LDKMessageSendEvent.SendShortIdsQuery) {
                        return new SendShortIdsQuery(this.ptr, raw_val);
                }
+               if (raw_val instanceof bindings.LDKMessageSendEvent.SendReplyChannelRange) {
+                       return new SendReplyChannelRange(this.ptr, raw_val);
+               }
                throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface
        }
 
 }
 export class SendAcceptChannel extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: AcceptChannel;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendAcceptChannel) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               AcceptChannel msg_hu_conv = new AcceptChannel(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: AcceptChannel = new AcceptChannel(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendOpenChannel extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: OpenChannel;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendOpenChannel) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               OpenChannel msg_hu_conv = new OpenChannel(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: OpenChannel = new OpenChannel(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendFundingCreated extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: FundingCreated;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendFundingCreated) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               FundingCreated msg_hu_conv = new FundingCreated(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: FundingCreated = new FundingCreated(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendFundingSigned extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: FundingSigned;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendFundingSigned) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               FundingSigned msg_hu_conv = new FundingSigned(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: FundingSigned = new FundingSigned(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendFundingLocked extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: FundingLocked;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendFundingLocked) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               FundingLocked msg_hu_conv = new FundingLocked(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: FundingLocked = new FundingLocked(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendAnnouncementSignatures extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: AnnouncementSignatures;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendAnnouncementSignatures) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               AnnouncementSignatures msg_hu_conv = new AnnouncementSignatures(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: AnnouncementSignatures = new AnnouncementSignatures(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class UpdateHTLCs extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public updates: CommitmentUpdate;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.UpdateHTLCs) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const updates: uint32_t = obj.updates;
-               CommitmentUpdate updates_hu_conv = new CommitmentUpdate(null, updates);
+               const updates: number = obj.updates;
+               const updates_hu_conv: CommitmentUpdate = new CommitmentUpdate(null, updates);
+                       updates_hu_conv.ptrs_to.add(this);
                this.updates = updates_hu_conv;
        }
 }
 export class SendRevokeAndACK extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: RevokeAndACK;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendRevokeAndACK) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               RevokeAndACK msg_hu_conv = new RevokeAndACK(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: RevokeAndACK = new RevokeAndACK(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendClosingSigned extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: ClosingSigned;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendClosingSigned) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               ClosingSigned msg_hu_conv = new ClosingSigned(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: ClosingSigned = new ClosingSigned(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendShutdown extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: Shutdown;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendShutdown) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               Shutdown msg_hu_conv = new Shutdown(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: Shutdown = new Shutdown(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendChannelReestablish extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: ChannelReestablish;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendChannelReestablish) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               ChannelReestablish msg_hu_conv = new ChannelReestablish(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: ChannelReestablish = new ChannelReestablish(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
@@ -194,11 +208,13 @@ export class BroadcastChannelAnnouncement extends MessageSendEvent {
        public update_msg: ChannelUpdate;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.BroadcastChannelAnnouncement) {
                super(null, ptr);
-               const msg: uint32_t = obj.msg;
-               ChannelAnnouncement msg_hu_conv = new ChannelAnnouncement(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
-               const update_msg: uint32_t = obj.update_msg;
-               ChannelUpdate update_msg_hu_conv = new ChannelUpdate(null, update_msg);
+               const update_msg: number = obj.update_msg;
+               const update_msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, update_msg);
+                       update_msg_hu_conv.ptrs_to.add(this);
                this.update_msg = update_msg_hu_conv;
        }
 }
@@ -206,8 +222,9 @@ export class BroadcastNodeAnnouncement extends MessageSendEvent {
        public msg: NodeAnnouncement;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.BroadcastNodeAnnouncement) {
                super(null, ptr);
-               const msg: uint32_t = obj.msg;
-               NodeAnnouncement msg_hu_conv = new NodeAnnouncement(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: NodeAnnouncement = new NodeAnnouncement(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
@@ -215,52 +232,215 @@ export class BroadcastChannelUpdate extends MessageSendEvent {
        public msg: ChannelUpdate;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.BroadcastChannelUpdate) {
                super(null, ptr);
-               const msg: uint32_t = obj.msg;
-               ChannelUpdate msg_hu_conv = new ChannelUpdate(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
+               this.msg = msg_hu_conv;
+       }
+}
+export class SendChannelUpdate extends MessageSendEvent {
+       public node_id: Uint8Array;
+       public msg: ChannelUpdate;
+       private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendChannelUpdate) {
+               super(null, ptr);
+               this.node_id = obj.node_id;
+               const msg: number = obj.msg;
+               const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class HandleError extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public action: ErrorAction;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.HandleError) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const action: uint32_t = obj.action;
+               const action: number = obj.action;
                ErrorAction action_hu_conv = ErrorAction.constr_from_ptr(action);
                        action_hu_conv.ptrs_to.add(this);
                this.action = action_hu_conv;
        }
 }
-export class PaymentFailureNetworkUpdate extends MessageSendEvent {
-       public update: HTLCFailChannelUpdate;
-       private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.PaymentFailureNetworkUpdate) {
-               super(null, ptr);
-               const update: uint32_t = obj.update;
-               HTLCFailChannelUpdate update_hu_conv = HTLCFailChannelUpdate.constr_from_ptr(update);
-                       update_hu_conv.ptrs_to.add(this);
-               this.update = update_hu_conv;
-       }
-}
 export class SendChannelRangeQuery extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: QueryChannelRange;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendChannelRangeQuery) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               QueryChannelRange msg_hu_conv = new QueryChannelRange(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: QueryChannelRange = new QueryChannelRange(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
 }
 export class SendShortIdsQuery extends MessageSendEvent {
-       public node_id: byte[];
+       public node_id: Uint8Array;
        public msg: QueryShortChannelIds;
        private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendShortIdsQuery) {
                super(null, ptr);
                this.node_id = obj.node_id;
-               const msg: uint32_t = obj.msg;
-               QueryShortChannelIds msg_hu_conv = new QueryShortChannelIds(null, msg);
+               const msg: number = obj.msg;
+               const msg_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
+               this.msg = msg_hu_conv;
+       }
+}
+export class SendReplyChannelRange extends MessageSendEvent {
+       public node_id: Uint8Array;
+       public msg: ReplyChannelRange;
+       private constructor(ptr: number, obj: bindings.LDKMessageSendEvent.SendReplyChannelRange) {
+               super(null, ptr);
+               this.node_id = obj.node_id;
+               const msg: number = obj.msg;
+               const msg_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                this.msg = msg_hu_conv;
        }
+}
+       public number clone_ptr() {
+               number ret = bindings.MessageSendEvent_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       public MessageSendEvent clone() {
+               number ret = bindings.MessageSendEvent_clone(this.ptr);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_accept_channel(Uint8Array node_id, AcceptChannel msg) {
+               number ret = bindings.MessageSendEvent_send_accept_channel(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_open_channel(Uint8Array node_id, OpenChannel msg) {
+               number ret = bindings.MessageSendEvent_send_open_channel(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_funding_created(Uint8Array node_id, FundingCreated msg) {
+               number ret = bindings.MessageSendEvent_send_funding_created(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_funding_signed(Uint8Array node_id, FundingSigned msg) {
+               number ret = bindings.MessageSendEvent_send_funding_signed(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_funding_locked(Uint8Array node_id, FundingLocked msg) {
+               number ret = bindings.MessageSendEvent_send_funding_locked(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_announcement_signatures(Uint8Array node_id, AnnouncementSignatures msg) {
+               number ret = bindings.MessageSendEvent_send_announcement_signatures(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_update_htlcs(Uint8Array node_id, CommitmentUpdate updates) {
+               number ret = bindings.MessageSendEvent_update_htlcs(InternalUtils.check_arr_len(node_id, 33), updates == null ? 0 : updates.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_revoke_and_ack(Uint8Array node_id, RevokeAndACK msg) {
+               number ret = bindings.MessageSendEvent_send_revoke_and_ack(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_closing_signed(Uint8Array node_id, ClosingSigned msg) {
+               number ret = bindings.MessageSendEvent_send_closing_signed(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_shutdown(Uint8Array node_id, Shutdown msg) {
+               number ret = bindings.MessageSendEvent_send_shutdown(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_channel_reestablish(Uint8Array node_id, ChannelReestablish msg) {
+               number ret = bindings.MessageSendEvent_send_channel_reestablish(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_broadcast_channel_announcement(ChannelAnnouncement msg, ChannelUpdate update_msg) {
+               number ret = bindings.MessageSendEvent_broadcast_channel_announcement(msg == null ? 0 : msg.ptr & ~1, update_msg == null ? 0 : update_msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_broadcast_node_announcement(NodeAnnouncement msg) {
+               number ret = bindings.MessageSendEvent_broadcast_node_announcement(msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_broadcast_channel_update(ChannelUpdate msg) {
+               number ret = bindings.MessageSendEvent_broadcast_channel_update(msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_channel_update(Uint8Array node_id, ChannelUpdate msg) {
+               number ret = bindings.MessageSendEvent_send_channel_update(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_handle_error(Uint8Array node_id, ErrorAction action) {
+               number ret = bindings.MessageSendEvent_handle_error(InternalUtils.check_arr_len(node_id, 33), action.ptr);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_channel_range_query(Uint8Array node_id, QueryChannelRange msg) {
+               number ret = bindings.MessageSendEvent_send_channel_range_query(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_short_ids_query(Uint8Array node_id, QueryShortChannelIds msg) {
+               number ret = bindings.MessageSendEvent_send_short_ids_query(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static MessageSendEvent constructor_send_reply_channel_range(Uint8Array node_id, ReplyChannelRange msg) {
+               number ret = bindings.MessageSendEvent_send_reply_channel_range(InternalUtils.check_arr_len(node_id, 33), msg == null ? 0 : msg.ptr & ~1);
+               MessageSendEvent ret_hu_conv = MessageSendEvent.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
 }