⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
dbus
/
__pycache__
/
View File Name :
proxies.cpython-310.pyc
o t3b` @ s d dl Z zd dlmZ W n ey d dlmZ Y nw d dlZd dlmZ d dlm Z m Z mZmZ dZ e dZd dlmZmZmZmZmZ d dlmZ G d d d ZG dd dZG d d deZG dd deZdS ) N)RLock)process_introspection_data) DBusExceptionIntrospectionParserExceptionMissingErrorHandlerExceptionMissingReplyHandlerExceptionZrestructuredtextzdbus.proxies)BUS_DAEMON_IFACEBUS_DAEMON_NAMEBUS_DAEMON_PATHINTROSPECTABLE_IFACE LOCAL_PATH)is_py2c @ ( e Zd ZdZdd Zdd Zdd ZdS ) _DeferredMethodzXA proxy method which will only get called once we have its introspection reply. c C s || _ |j| _|| _|| _d S N) _proxy_method_method_name_append_block)selfproxy_methodappendblock r ./usr/lib/python3/dist-packages/dbus/proxies.py__init__8 s z_DeferredMethod.__init__c O s@ d|v s | ddr| | j|| d S | | j|i |S )N reply_handlerignore_replyF)getr r r r argskeywordsr r r __call__? s z_DeferredMethod.__call__c O s | | j|| d S r )r r r r r r call_asyncJ s z_DeferredMethod.call_asyncN__name__ __module____qualname____doc__r r" r# r r r r r 4 s r c @ r ) _ProxyMethodzA proxy method. Typically a member of a ProxyObject. Calls to the method produce messages that travel over the Bus and are routed to a specific named Service. c C sX |t kr tdt || _|| _|| _|| _t| || _|d ur't | || _ d S )Nz1Methods may not be called on the reserved path %s)r r _proxy_connection_named_service_object_path_dbus_bindingsZvalidate_member_namer Zvalidate_interface_name_dbus_interface)r proxyZ connectionbus_nameobject_pathZmethod_nameZifacer r r r U s z_ProxyMethod.__init__c O s | dd }| dd }| dd}| dd }|d us |d ur4|d u r't |d u r.t |r4td| d| j}|d u rV|d u rG| j}n|d | j }| jj|d }|s\|d urr| j j | j| j|| j||||fi | d S | j j | j| j|| j||fi |S ) Nr error_handlerr F signaturez6ignore_reply and reply_handler cannot be used togetherdbus_interface.)popr r TypeErrorr/ r r* _introspect_method_mapr r+ r# r, r- Z call_blocking) r r r! r r3 r r4 r5 keyr r r r" i sL z_ProxyMethod.__call__c O s | dd }| dd }| dd }| d| j}|d u r2|r'|d | j }n| j}| jj|d }| jj| j| j || j||||fi | d S )Nr r3 r4 r5 r6 ) r7 r/ r r* r9 r r+ r# r, r- )r r r! r r3 r4 r5 r: r r r r# s( z_ProxyMethod.call_asyncNr$ r r r r r) N s ,r) c @ s e Zd ZdZeZeZdZdZ dZ d%dd Zed d dddZ ed d dddZedd dddZd&ddZdd Zdd Zdd Zdd Zdd Zdd Zdd Zd&d!d"Zd#d$ ZeZdS )'ProxyObjectzA proxy to the remote Object. A ProxyObject is provided by the Bus. ProxyObjects have member functions, and can be called like normal Python objects. r NTFc K s8 | dd}|dur!|durtd|}ddlm} |dtdd | d d} | durB|dur3td | }ddlm} |dtdd |rOtdd | |rU| || _|durat | | | _| _t | || _|sw||| _d| _g | _i | _t | _|r| jtkr| j| _dS | j| _| | _dS )a Initialize the proxy object. :Parameters: `conn` : `dbus.connection.Connection` The bus or connection on which to find this object. The keyword argument `bus` is a deprecated alias for this. `bus_name` : str A bus name for the application owning the object, to be used as the destination for method calls and the sender for signal matches. The keyword argument ``named_service`` is a deprecated alias for this. `object_path` : str The object path at which the application exports the object `introspect` : bool If true (default), attempt to introspect the remote object to find out supported methods and their signatures `follow_name_owner_changes` : bool If true (default is false) and the `bus_name` is a well-known name, follow ownership changes for that name busNz%conn and bus cannot both be specifiedr )warnz`Passing the bus parameter to ProxyObject by name is deprecated: please use positional parametersr= ) stacklevel named_servicez3bus_name and named_service cannot both be specifiedzjPassing the named_service parameter to ProxyObject by name is deprecated: please use positional parametersz>ProxyObject.__init__ does not take these keyword arguments: %sz, )r7 r8 warningsr? DeprecationWarningjoinkeysZ_require_main_loop_busr. Zvalidate_bus_namer, _requested_bus_nameZvalidate_object_path__dbus_object_path__Zactivate_name_owner_pending_introspect_pending_introspect_queuer9 r _introspect_lockr INTROSPECT_STATE_DONT_INTROSPECT_introspect_state'INTROSPECT_STATE_INTROSPECT_IN_PROGRESS_Introspect) r Zconnr1 r2 Z introspectZfollow_name_owner_changeskwargsr> r? rA r r r r sP zProxyObject.__init__c C | j S r )r, r r r r
zProxyObject.
a The bus name to which this proxy is bound. (Read-only, may change.) If the proxy was instantiated using a unique name, this property is that unique name. If the proxy was instantiated with a well-known name and with ``follow_name_owner_changes`` set false (the default), this property is the unique name of the connection that owned that well-known name when the proxy was instantiated, which might not actually own the requested well-known name any more. If the proxy was instantiated with a well-known name and with ``follow_name_owner_changes`` set true, this property is that well-known name. c C rQ r )rG rR r r r rS rT z[The bus name which was requested when this proxy was instantiated. c C rQ r )rH rR r r r rS & rT zThe object-path of this proxy.c K s" | j j|f||| j| jd|S )ax Arrange for the given function to be called when the given signal is received. :Parameters: `signal_name` : str The name of the signal `handler_function` : callable A function to be called when the signal is emitted by the remote object. Its positional arguments will be the arguments of the signal; optionally, it may be given keyword arguments as described below. `dbus_interface` : str Optional interface with which to qualify the signal name. If None (the default) the handler will be called whenever a signal of the given member name is received, whatever its interface. :Keywords: `utf8_strings` : bool If True, the handler function will receive any string arguments as dbus.UTF8String objects (a subclass of str guaranteed to be UTF-8). If False (default) it will receive any string arguments as dbus.String objects (a subclass of unicode). `byte_arrays` : bool If True, the handler function will receive any byte-array arguments as dbus.ByteArray objects (a subclass of str). If False (default) it will receive any byte-array arguments as a dbus.Array of dbus.Byte (subclasses of: a list of ints). `sender_keyword` : str If not None (the default), the handler function will receive the unique name of the sending endpoint as a keyword argument with this name `destination_keyword` : str If not None (the default), the handler function will receive the bus name of the destination (or None if the signal is a broadcast, as is usual) as a keyword argument with this name. `interface_keyword` : str If not None (the default), the handler function will receive the signal interface as a keyword argument with this name. `member_keyword` : str If not None (the default), the handler function will receive the signal name as a keyword argument with this name. `path_keyword` : str If not None (the default), the handler function will receive the object-path of the sending object as a keyword argument with this name `message_keyword` : str If not None (the default), the handler function will receive the `dbus.lowlevel.SignalMessage` as a keyword argument with this name. `arg...` : unicode or UTF-8 str If there are additional keyword parameters of the form ``arg``\ *n*, match only signals where the *n*\ th argument is the value given for that keyword parameter. As of this time only string arguments can be matched (in particular, object paths and signatures can't). )signal_namer5 r1 path)rF Zadd_signal_receiverr, rH r rU Zhandler_functionr5 r! r r r connect_to_signal2 s <zProxyObject.connect_to_signalc C s> i }t rd|d<