0x1949 Team - FAZEMRX - MANAGER
Edit File: codegen_docbook.cpython-310.pyc
o �*c\I � @ s2 d dl Z d dlmZ ddlmZ G dd� d�ZdS )� N)�path� )�utilsc @ s| e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� ZdS )�DocbookCodeGeneratorc C s || _ | �� d S )N)�ifaces�generate_expand_dicts)�selfr � r �./usr/share/glib-2.0/codegen/codegen_docbook.py�__init__ s zDocbookCodeGenerator.__init__c C s� d}|r|j D ] }tt|j�|�}qntt|j�|�}d}|rB|j D ]}|jD ] }tt|j�|�}q'|jD ] }tt|j�|�}q5q"n|jD ] }tt|j�|�}qE|jD ] }tt|j�|�}qS|ry| j�dt � |j�|j|j|t|j� df � n| j�d|j|t|j� df � d}|jD ])}|dkr�| j�d|d df � | j�d|j|t|j� d|jf � |d }q�|jD ])}|dkr�| j�d|d df � | j�d |j|t|j� d|jf � |d }q�| j�d � d S )Nr z1<link linkend="gdbus-method-%s.%s">%s</link>%*s (� �%s%*s (�, %*s� zIN %s%*s %sr zOUT %s%*s %s�); )�methods�max�len�name�in_args� signature�out_args�out�writer �dots_to_hyphens) r �i�m�in_synopsis�max_method_len�_m�max_signature_len�a�countr r r �print_method_prototype$ sf � �� ���" �� �� z+DocbookCodeGenerator.print_method_prototypec C sJ d}|r|j D ] }tt|j�|�}qntt|j�|�}d}|r4|j D ]}|jD ] }tt|j�|�}q'q"n|jD ] }tt|j�|�}q7|r]| j�dt� |j�|j|j|t|j� df � n| j�d|j|t|j� df � d}|jD ])}|dkr�| j�d|d df � | j�d|j|t|j� d|jf � |d }qs| j�d � d S ) Nr z1<link linkend="gdbus-signal-%s.%s">%s</link>%*s (r r r r z%s%*s %sr r ) �signalsr r r �argsr r r r r ) r r �sr �max_signal_len�_sr r! r"