%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/jeepney/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/jeepney/__pycache__/routing.cpython-312.pyc

�

+�c��@�ddlmZddlmZmZddlmZGd�d�Zy)�)�warn�)�MessageType�HeaderFields)�DBusErrorResponsec�^�eZdZdZd	d�Zed��Zejd��Zd�Zd�Z	d�Z
y)
�Routera[Routing for messages coming back to a client application.
    
    :param handle_factory: Constructor for an object like asyncio.Future,
        with methods *set_result* and *set_exception*. Outgoing method call
        messages will get a handle associated with them.
    :param on_unhandled: Callback for messages not otherwise dispatched.
    Nc�J�||_||_d|_i|_i|_y)Nr)�handle_factory�
_on_unhandled�outgoing_serial�awaiting_reply�signal_callbacks)�selfr�on_unhandleds   �1/usr/lib/python3/dist-packages/jeepney/routing.py�__init__zRouter.__init__s*��,���)��� ��� ��� "���c��|jS�N)r)rs rrzRouter.on_unhandleds���!�!�!rc�,�tdd��||_y)NzeSetting on_unhandled is deprecated. Please use the filter() method or simple receive() calls instead.���
stacklevel)rr)r�values  rrzRouter.on_unhandleds���9�EF�	H�"��rc��|xjdz
c_|j|j_|jjtj
ur5|j
�x|j|jj<}|Sy)zNSet the serial number in the message & make a handle if a method call
        rN)r
�header�serial�message_typer�method_callrr)r�msg�handles   r�outgoingzRouter.outgoingsq��	
����!�� �0�0��
�
���:�:�"�"�k�&=�&=�=�>B�>Q�>Q�>S�S�D����
�
� 1� 1�2�V��M�>rc�B�tdd��||j|||f<y)z%Add a callback for a signal.
        zQThe subscribe_signal() method is deprecated. Please use the filter() API instead.rrN)rr)r�callback�path�	interface�members     r�subscribe_signalzRouter.subscribe_signal)s,��	
�4�@A�	C�;C����t�Y��7�8rc�Z�|j}|jtjur�|jjtjd�|jjtjd�|jjtjd�f}|jj|d�}|�||j�y|jjtjd�}|jj|d�}|�o|jtjur|j!|j�y|jtj"ur|j%t'|��y|j(r|j)|�yy)z#Route an incoming message.
        N���)rrr�signal�fields�getrr&r'r(r�body�reply_serialr�pop�
method_return�
set_result�error�
set_exceptionrr)rr!�hdr�key�cbr0�reply_handles       r�incomingzRouter.incoming0sI���j�j�����{�1�1�1��:�:�>�>�,�"3�"3�T�:��:�:�>�>�,�"8�"8�$�?��:�:�>�>�,�"5�"5�t�<��C��&�&�*�*�3��5�B��~��3�8�8����z�z�~�~�l�&?�&?��D���*�*�.�.�|�T�B���#����;�#<�#<�<��'�'����1���!�!�[�%6�%6�6��*�*�+<�S�+A�B��������c�"�rr)�__name__�
__module__�__qualname__�__doc__r�propertyr�setterr#r)r:�rrr	r	sJ���#��"��"����#��#�
�D�#rr	N)�warningsr�	low_levelrr�wrappersrr	rArr�<module>rEs���0�'�F#�F#r

Zerion Mini Shell 1.0