Lines Matching refs:to

520 SEventDeviceValuator(deviceValuator * from, deviceValuator * to)  in SEventDeviceValuator()  argument
525 *to = *from; in SEventDeviceValuator()
526 swaps(&to->sequenceNumber); in SEventDeviceValuator()
527 swaps(&to->device_state); in SEventDeviceValuator()
528 ip = &to->valuator0; in SEventDeviceValuator()
535 SEventFocus(deviceFocus * from, deviceFocus * to) in SEventFocus() argument
537 *to = *from; in SEventFocus()
538 swaps(&to->sequenceNumber); in SEventFocus()
539 swapl(&to->time); in SEventFocus()
540 swapl(&to->window); in SEventFocus()
544 SDeviceStateNotifyEvent(deviceStateNotify * from, deviceStateNotify * to) in SDeviceStateNotifyEvent() argument
549 *to = *from; in SDeviceStateNotifyEvent()
550 swaps(&to->sequenceNumber); in SDeviceStateNotifyEvent()
551 swapl(&to->time); in SDeviceStateNotifyEvent()
552 ip = &to->valuator0; in SDeviceStateNotifyEvent()
560 deviceKeyStateNotify * to) in SDeviceKeyStateNotifyEvent() argument
562 *to = *from; in SDeviceKeyStateNotifyEvent()
563 swaps(&to->sequenceNumber); in SDeviceKeyStateNotifyEvent()
568 deviceButtonStateNotify * to) in SDeviceButtonStateNotifyEvent() argument
570 *to = *from; in SDeviceButtonStateNotifyEvent()
571 swaps(&to->sequenceNumber); in SDeviceButtonStateNotifyEvent()
575 SChangeDeviceNotifyEvent(changeDeviceNotify * from, changeDeviceNotify * to) in SChangeDeviceNotifyEvent() argument
577 *to = *from; in SChangeDeviceNotifyEvent()
578 swaps(&to->sequenceNumber); in SChangeDeviceNotifyEvent()
579 swapl(&to->time); in SChangeDeviceNotifyEvent()
583 SDeviceMappingNotifyEvent(deviceMappingNotify * from, deviceMappingNotify * to) in SDeviceMappingNotifyEvent() argument
585 *to = *from; in SDeviceMappingNotifyEvent()
586 swaps(&to->sequenceNumber); in SDeviceMappingNotifyEvent()
587 swapl(&to->time); in SDeviceMappingNotifyEvent()
592 devicePresenceNotify * to) in SDevicePresenceNotifyEvent() argument
594 *to = *from; in SDevicePresenceNotifyEvent()
595 swaps(&to->sequenceNumber); in SDevicePresenceNotifyEvent()
596 swapl(&to->time); in SDevicePresenceNotifyEvent()
597 swaps(&to->control); in SDevicePresenceNotifyEvent()
602 devicePropertyNotify * to) in SDevicePropertyNotifyEvent() argument
604 *to = *from; in SDevicePropertyNotifyEvent()
605 swaps(&to->sequenceNumber); in SDevicePropertyNotifyEvent()
606 swapl(&to->time); in SDevicePropertyNotifyEvent()
607 swapl(&to->atom); in SDevicePropertyNotifyEvent()
611 SDeviceLeaveNotifyEvent(xXILeaveEvent * from, xXILeaveEvent * to) in SDeviceLeaveNotifyEvent() argument
613 *to = *from; in SDeviceLeaveNotifyEvent()
614 swaps(&to->sequenceNumber); in SDeviceLeaveNotifyEvent()
615 swapl(&to->length); in SDeviceLeaveNotifyEvent()
616 swaps(&to->evtype); in SDeviceLeaveNotifyEvent()
617 swaps(&to->deviceid); in SDeviceLeaveNotifyEvent()
618 swapl(&to->time); in SDeviceLeaveNotifyEvent()
619 swapl(&to->root); in SDeviceLeaveNotifyEvent()
620 swapl(&to->event); in SDeviceLeaveNotifyEvent()
621 swapl(&to->child); in SDeviceLeaveNotifyEvent()
622 swapl(&to->root_x); in SDeviceLeaveNotifyEvent()
623 swapl(&to->root_y); in SDeviceLeaveNotifyEvent()
624 swapl(&to->event_x); in SDeviceLeaveNotifyEvent()
625 swapl(&to->event_y); in SDeviceLeaveNotifyEvent()
626 swaps(&to->sourceid); in SDeviceLeaveNotifyEvent()
627 swaps(&to->buttons_len); in SDeviceLeaveNotifyEvent()
628 swapl(&to->mods.base_mods); in SDeviceLeaveNotifyEvent()
629 swapl(&to->mods.latched_mods); in SDeviceLeaveNotifyEvent()
630 swapl(&to->mods.locked_mods); in SDeviceLeaveNotifyEvent()
634 SDeviceChangedEvent(xXIDeviceChangedEvent * from, xXIDeviceChangedEvent * to) in SDeviceChangedEvent() argument
639 *to = *from; in SDeviceChangedEvent()
640 memcpy(&to[1], &from[1], from->length * 4); in SDeviceChangedEvent()
642 any = (xXIAnyInfo *) &to[1]; in SDeviceChangedEvent()
643 for (i = 0; i < to->num_classes; i++) { in SDeviceChangedEvent()
690 swaps(&to->sequenceNumber); in SDeviceChangedEvent()
691 swapl(&to->length); in SDeviceChangedEvent()
692 swaps(&to->evtype); in SDeviceChangedEvent()
693 swaps(&to->deviceid); in SDeviceChangedEvent()
694 swapl(&to->time); in SDeviceChangedEvent()
695 swaps(&to->num_classes); in SDeviceChangedEvent()
696 swaps(&to->sourceid); in SDeviceChangedEvent()
701 SDeviceEvent(xXIDeviceEvent * from, xXIDeviceEvent * to) in SDeviceEvent() argument
707 memcpy(to, from, sizeof(xEvent) + from->length * 4); in SDeviceEvent()
709 swaps(&to->sequenceNumber); in SDeviceEvent()
710 swapl(&to->length); in SDeviceEvent()
711 swaps(&to->evtype); in SDeviceEvent()
712 swaps(&to->deviceid); in SDeviceEvent()
713 swapl(&to->time); in SDeviceEvent()
714 swapl(&to->detail); in SDeviceEvent()
715 swapl(&to->root); in SDeviceEvent()
716 swapl(&to->event); in SDeviceEvent()
717 swapl(&to->child); in SDeviceEvent()
718 swapl(&to->root_x); in SDeviceEvent()
719 swapl(&to->root_y); in SDeviceEvent()
720 swapl(&to->event_x); in SDeviceEvent()
721 swapl(&to->event_y); in SDeviceEvent()
722 swaps(&to->buttons_len); in SDeviceEvent()
723 swaps(&to->valuators_len); in SDeviceEvent()
724 swaps(&to->sourceid); in SDeviceEvent()
725 swapl(&to->mods.base_mods); in SDeviceEvent()
726 swapl(&to->mods.latched_mods); in SDeviceEvent()
727 swapl(&to->mods.locked_mods); in SDeviceEvent()
728 swapl(&to->mods.effective_mods); in SDeviceEvent()
729 swapl(&to->flags); in SDeviceEvent()
731 ptr = (char *) (&to[1]); in SDeviceEvent()
746 SDeviceHierarchyEvent(xXIHierarchyEvent * from, xXIHierarchyEvent * to) in SDeviceHierarchyEvent() argument
751 *to = *from; in SDeviceHierarchyEvent()
752 memcpy(&to[1], &from[1], from->length * 4); in SDeviceHierarchyEvent()
753 swaps(&to->sequenceNumber); in SDeviceHierarchyEvent()
754 swapl(&to->length); in SDeviceHierarchyEvent()
755 swaps(&to->evtype); in SDeviceHierarchyEvent()
756 swaps(&to->deviceid); in SDeviceHierarchyEvent()
757 swapl(&to->time); in SDeviceHierarchyEvent()
758 swapl(&to->flags); in SDeviceHierarchyEvent()
759 swaps(&to->num_info); in SDeviceHierarchyEvent()
761 info = (xXIHierarchyInfo *) &to[1]; in SDeviceHierarchyEvent()
770 SXIPropertyEvent(xXIPropertyEvent * from, xXIPropertyEvent * to) in SXIPropertyEvent() argument
772 *to = *from; in SXIPropertyEvent()
773 swaps(&to->sequenceNumber); in SXIPropertyEvent()
774 swapl(&to->length); in SXIPropertyEvent()
775 swaps(&to->evtype); in SXIPropertyEvent()
776 swaps(&to->deviceid); in SXIPropertyEvent()
777 swapl(&to->property); in SXIPropertyEvent()
781 SRawEvent(xXIRawEvent * from, xXIRawEvent * to) in SRawEvent() argument
787 memcpy(to, from, sizeof(xEvent) + from->length * 4); in SRawEvent()
789 swaps(&to->sequenceNumber); in SRawEvent()
790 swapl(&to->length); in SRawEvent()
791 swaps(&to->evtype); in SRawEvent()
792 swaps(&to->deviceid); in SRawEvent()
793 swapl(&to->time); in SRawEvent()
794 swapl(&to->detail); in SRawEvent()
796 mask = (unsigned char *) &to[1]; in SRawEvent()
815 swaps(&to->valuators_len); in SRawEvent()
819 STouchOwnershipEvent(xXITouchOwnershipEvent * from, xXITouchOwnershipEvent * to) in STouchOwnershipEvent() argument
821 *to = *from; in STouchOwnershipEvent()
822 swaps(&to->sequenceNumber); in STouchOwnershipEvent()
823 swapl(&to->length); in STouchOwnershipEvent()
824 swaps(&to->evtype); in STouchOwnershipEvent()
825 swaps(&to->deviceid); in STouchOwnershipEvent()
826 swapl(&to->time); in STouchOwnershipEvent()
827 swaps(&to->sourceid); in STouchOwnershipEvent()
828 swapl(&to->touchid); in STouchOwnershipEvent()
829 swapl(&to->flags); in STouchOwnershipEvent()
830 swapl(&to->root); in STouchOwnershipEvent()
831 swapl(&to->event); in STouchOwnershipEvent()
832 swapl(&to->child); in STouchOwnershipEvent()
837 xXIBarrierEvent * to) { in SBarrierEvent() argument
839 *to = *from; in SBarrierEvent()
841 swaps(&to->sequenceNumber); in SBarrierEvent()
842 swapl(&to->length); in SBarrierEvent()
843 swaps(&to->evtype); in SBarrierEvent()
844 swapl(&to->time); in SBarrierEvent()
845 swaps(&to->deviceid); in SBarrierEvent()
846 swaps(&to->sourceid); in SBarrierEvent()
847 swapl(&to->event); in SBarrierEvent()
848 swapl(&to->root); in SBarrierEvent()
849 swapl(&to->root_x); in SBarrierEvent()
850 swapl(&to->root_y); in SBarrierEvent()
852 swapl(&to->dx.integral); in SBarrierEvent()
853 swapl(&to->dx.frac); in SBarrierEvent()
854 swapl(&to->dy.integral); in SBarrierEvent()
855 swapl(&to->dy.frac); in SBarrierEvent()
856 swapl(&to->dtime); in SBarrierEvent()
857 swapl(&to->barrier); in SBarrierEvent()
858 swapl(&to->eventid); in SBarrierEvent()
863 XI2EventSwap(xGenericEvent *from, xGenericEvent *to) in XI2EventSwap() argument
870 SDeviceLeaveNotifyEvent((xXILeaveEvent *) from, (xXILeaveEvent *) to); in XI2EventSwap()
874 (xXIDeviceChangedEvent *) to); in XI2EventSwap()
878 (xXIHierarchyEvent *) to); in XI2EventSwap()
881 SXIPropertyEvent((xXIPropertyEvent *) from, (xXIPropertyEvent *) to); in XI2EventSwap()
891 SDeviceEvent((xXIDeviceEvent *) from, (xXIDeviceEvent *) to); in XI2EventSwap()
895 (xXITouchOwnershipEvent *) to); in XI2EventSwap()
905 SRawEvent((xXIRawEvent *) from, (xXIRawEvent *) to); in XI2EventSwap()
910 (xXIBarrierEvent *) to); in XI2EventSwap()
1203 #define DO_SWAP(func,type) func ((type *)from, (type *)to)
1206 SEventIDispatch(xEvent *from, xEvent *to) in SEventIDispatch() argument
1213 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1214 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()
1217 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1218 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()
1221 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1222 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()
1225 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1226 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()
1229 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1230 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()
1237 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1238 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()
1241 SKeyButtonPtrEvent(from, to); in SEventIDispatch()
1242 to->u.keyButtonPointer.pad1 = from->u.keyButtonPointer.pad1; in SEventIDispatch()