ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/pyudev/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/pyudev/_libudev.pyo

�
��3Yc9@`s>dZddlmZmZmZmZddlZddlZddlm	Z	m
Z
mZmZm
Z
mZmZmZddlmZde
fd��YZee�Zde
fd	��YZee�Zd
e
fd��YZee�Zde
fd
��YZee�Zde
fd��YZee�ZeZieddefdegdfdegefdegefdegefdegefdegefdeegdf�d6edegefdegefdegdfdeegefdeegefdeeegefdeeegefdeeegefdeegefdeegefd eegefd!egefd"egefd#egef�d$6ed%egefd&egefd'egef�d(6edegefdegdfd)eegefd*eeegefd+ee
egefd,egefd-egefd.eeegefd/egefd0egefd1egefd2egefd3egefd4egefd5egefd6egefd7eegefd8eegefd9egefd:egefd;egefd<egefd=egefd>egefd?egefd@egefdAeegef�dB6edegefdegdfdCeegefdDeegefdEegefdFegefdGegefdHegefdIeeegefdJeegefdKegefdLegef�dM6Z ie!ej"6e#ej$6e%ej&6Z'dN�Z(dO�Z)dP�Z*dQ�Z+edRe)dSe)dTe)dUe)dVe)dWe)dXe)dYe)dZe)d[e*d\e*d]e+d^e)d_e)d`e*dae*�Z,db�Z-dS(cu�
    _libudev
    ========

    Wrapper types for libudev.  Use ``libudev`` attribute to access libudev
    functions.

    .. moduleauthor::  Sebastian Wiesner  <lunaryorn@googlemail.com>
i(tprint_functiontdivisiontunicode_literalstabsolute_importN(tCDLLt	StructuretPOINTERt	get_errnotc_chartc_char_ptc_inttc_ulonglong(tfind_librarytudevcB`seZdZRS(u'
    Dummy for ``udev`` structure.
    (t__name__t
__module__t__doc__(((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pyR
(studev_enumeratecB`seZdZRS(u1
    Dummy for ``udev_enumerate`` structure.
    (RRR(((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pyR1studev_list_entrycB`seZdZRS(u2
    Dummy for ``udev_list_entry`` structure.
    (RRR(((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pyR9studev_devicecB`seZdZRS(u.
    Dummy for ``udev_device`` structure.
    (RRR(((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pyRAstudev_monitorcB`seZdZRS(u.
    Dummy for ``udev_device`` structure.
    (RRR(((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pyRIstnewtunreftreftget_sys_pathtget_dev_pathtget_run_pathtget_log_prioritytset_log_priorityuudevtadd_match_subsystemtadd_nomatch_subsystemtadd_match_propertytadd_match_sysattrtadd_nomatch_sysattrt
add_match_tagtadd_match_sysnametadd_match_parenttadd_match_is_initializedtscan_devicestget_list_entryuudev_enumeratetget_nexttget_namet	get_valueuudev_list_entrytnew_from_syspathtnew_from_subsystem_sysnametnew_from_devnumtnew_from_environmentt
get_parentt!get_parent_with_subsystem_devtypetget_devpatht
get_subsystemtget_syspatht
get_sysnumtget_sysnamet
get_drivertget_devtypetget_devnodetget_property_valuetget_sysattr_valuet
get_devnumt
get_actiontget_is_initializedtget_usec_since_initializedtget_devlinks_list_entrytget_tags_list_entrytget_properties_list_entrytget_sysattr_list_entrythas_taguudev_devicetnew_from_netlinktnew_from_sockettenable_receivingtset_receive_buffer_sizetget_fdtreceive_devicet"filter_add_match_subsystem_devtypetfilter_add_match_tagt
filter_updatet
filter_removeuudev_monitorcC`s<tj|�}|dk	r"|�St|tj|��SdS(u�
    Create an exception from ``errno``.

    ``errno`` is an integral error number.

    Return an exception object appropriate to ``errno``.
    N(tERRNO_EXCEPTIONStgettNonetEnvironmentErrortoststrerror(terrnot	exception((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pytexception_from_errno�scG`s*|dkr"|}t|��n|SdS(u�
    Error checker for udev funtions, which return negative error codes.

    If ``result`` is smaller than ``0``, it is interpreted as negative error
    code, and an appropriate exception is raised:

    - ``-ENOMEM`` raises a :exc:`~exceptions.MemoryError`
    - ``-EOVERFLOW`` raises a :exc:`~exceptions.OverflowError`
    - all other error codes raise :exc:`~exceptions.EnvironmentError`

    If result is greater or equal to ``0``, it is returned unchanged.
    iN(RV(tresulttfunctargsRT((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pytcheck_negative_errorcode�s
cG`s7|dkr3t�}|dkr3t|��q3n|S(u�
    Error checker to check the system ``errno`` as returned by
    :func:`ctypes.get_errno()`.

    If ``result`` is not ``0``, an exception according to this errno is raised.
    Otherwise nothing happens.
    i(RRV(RWRXRYRT((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pytcheck_errno�s
	cG`s1|s-t�}|dkr-t|��q-n|S(u�
    Error checker to check the system ``errno`` as returned by
    :func:`ctypes.get_errno()`.

    If ``result`` is a null pointer, an exception according to this errno is
    raised.  Otherwise nothing happens.
    i(RRV(RWRXRYRT((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pytcheck_errno_on_null_pointer�s
	tudev_enumerate_add_match_parentt"udev_enumerate_add_match_subsystemt$udev_enumerate_add_nomatch_subsystemt!udev_enumerate_add_match_propertyt udev_enumerate_add_match_sysattrt"udev_enumerate_add_nomatch_sysattrtudev_enumerate_add_match_tagt udev_enumerate_add_match_sysnamet'udev_enumerate_add_match_is_initializedt$udev_monitor_set_receive_buffer_sizetudev_monitor_enable_receivingtudev_monitor_receive_devicet/udev_monitor_filter_add_match_subsystem_devtypet!udev_monitor_filter_add_match_tagtudev_monitor_filter_updatetudev_monitor_filter_removec
C`s�td�}|s!td��nt|dt�}x�tj�D]�\}}x~|D]v}dj||�}t||d�}|rS||\}}||_	||_
tj|�}	|	r�|	|_
q�qSqSWq@W|S(uK
    Load the ``udev`` library and return a :class:`ctypes.CDLL` object for
    it.  The library has errno handling enabled.

    Important functions are given proper signatures and return types to
    support type checking and argument conversion.

    Raise :exc:`~exceptions.ImportError`, if the udev library was not found.
    uudevuNo library named udevt	use_errnou{0}_{1}N(RtImportErrorRtTruet
SIGNATUREStitemstformattgetattrRPtargtypestrestypetERROR_CHECKERSROterrcheck(
tudev_library_nametlibudevt	namespacetmemberstfuncnametfullnameRXRtRuterrorchecker((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pytload_udev_librarys 

		(.Rt
__future__RRRRRRRTtctypesRRRRRR	R
Rtctypes.utilRR
tudev_pRtudev_enumerate_pRtudev_list_entry_pRt
udev_device_pRtudev_monitor_ptdev_ttdictRPRptMemoryErrortENOMEMt
OverflowErrort	EOVERFLOWt
ValueErrortEINVALRNRVRZR[R\RvR(((s3/usr/lib/python2.7/site-packages/pyudev/_libudev.pyt<module>s�":		


					

Zerion Mini Shell 1.0