o
    •Û_ö  ã                   @   sX   d dl mZ d dl mZ d dl mZ dd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	dd„ Z
dS )é   )Ú
interfaces)Ú
controller)Údbus_exporterc                     ó   ‡ ‡fdd„}|S )z*Decorator, use to mark exportable methods.c                    ó   ˆ ˆg| _ | S ©N)Úexport_params©Úmethod©ÚargsÚkwargs© ú8/usr/lib/python3/dist-packages/tuned/exports/__init__.pyÚwrapper   ó   
zexport.<locals>.wrapperr   ©r   r   r   r   r   r   Úexport   ó   r   c                     r   )z*Decorator, use to mark exportable signals.c                    r   r   )Úsignal_paramsr	   r   r   r   r      r   zsignal.<locals>.wrapperr   r   r   r   r   Úsignal   r   r   c                 C   ó&   t | tjƒs	tƒ ‚tj ¡ }| | ¡S r   )Ú
isinstancer   ÚExporterInterfaceÚ	Exceptionr   ÚExportsControllerÚget_instanceÚregister_exporter©ÚinstanceÚctlr   r   r   r      ó   

r   c                 C   r   r   )r   r   ÚExportableInterfacer   r   r   r   Úregister_objectr   r   r   r   r#      r!   r#   c                  C   ó   t j ¡ } |  ¡ S r   )r   r   r   Ústart©r    r   r   r   r%      ó   
r%   c                  C   r$   r   )r   r   r   Ústopr&   r   r   r   r(   #   r'   r(   N)Ú r   r   r   Údbusr   r   r   r#   r%   r(   r   r   r   r   Ú<module>   s    