%PDF- %PDF-
Direktori : /lib/python3/dist-packages/libevdev/__pycache__/ |
Current File : //lib/python3/dist-packages/libevdev/__pycache__/_clib.cpython-312.pyc |
� �o�Z�� � �H � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dlm Z d Zd ZdZ dZ G d � dej � Z G d� dej � Z G d� de� Z G d� de� Z G d� dej � Z G d� de� Zy)� N)�c_char_p)�c_int)�c_uint)�c_void_p)�c_long)�c_int32)�c_uint16� � � � c �4 � e Zd ZdefdefdefdefdefdefgZy)� _InputAbsinfo�value�minimum�maximum�fuzz�flat� resolutionN)�__name__� __module__�__qualname__r �_fields_� � �0/usr/lib/python3/dist-packages/libevdev/_clib.pyr r * s9 � ��'�"��G�$��G�$���!���!��w�'�)�Hr r c �. � e Zd ZdefdefdefdefdefgZy)�_InputEvent�sec�usec�type�coder N)r r r r r r r r r r r r 3 s0 � ������ ���"���"��'�"� $�Hr r c �J � � e Zd ZdZdZi Z� fd�Zed� � Ze d� � Z � xZS )�_LibraryWrapperzH Base class for wrapping a shared library. Do not use directly. Nc �J �� t t | � � | j � y �N)�superr$ �__init__�_load)�self� __class__s �r r( z_LibraryWrapper.__init__J s �� � �o�t�-�/�� � �r c �p � | j �| j S | j � | _ | j j � D ]a \ }}t | j |� }|d |_ |d |_ t d� }t j |d||d � }t | ||� �c | j S )N�argtypes�restype�libevdev�name)�_lib�_cdll�_api_prototypes�items�getattrr- r. �len�dict�get�setattr)�clsr0 �attrs�func�prefix�pynames r r) z_LibraryWrapper._loadN s� � ��8�8���8�8�O��9�9�;��� �0�0�6�6�8� '�M�T�5��3�8�8�T�*�D�!�*�-�D�M� ��+�D�L� ��_�F��X�X�e�V�T�&�'�]�;�F��C���&� '� �x�x�r c � � t �)zOverride in subclass)�NotImplementedErrorr r r r2 z_LibraryWrapper._cdllb s � � "�!r )r r r �__doc__r1 r3 r( �classmethodr) �staticmethodr2 � __classcell__�r+ s @r r$ r$ ; sC �� �� �D��O�� �� ��&