def register_on_serial_port_changed(self, callback):
        """Set the callback function to consume on serial port changed events.

        Callback receives a ISerialPortChangedEvent object.

        Returns the callback_id
        """
        event_type = library.VBoxEventType.on_serial_port_changed
        return self.event_source.register_callback(callback, event_type)
def register_on_serial_port_changed ( self , callback ) : event_type = library . VBoxEventType . on_serial_port_changed return self . event_source . register_callback ( callback , event_type )
Set the callback function to consume on serial port changed events.

        Callback receives a ISerialPortChangedEvent object.

        Returns the callback_id