KOKINIO - MANAGER
Edit File: codegen.cpython-312.pyc
� ��fG� c s� � d dl mZ d dl mZ d dl mZ d dlmZ dZd� Zd� Z G d� d � Z G d � d� Z G d� d � Z G d� d� Zy)� )�config)�utils)� dbustypes)�print_errorz�/* * This file is generated by gdbus-codegen, do not modify it. * * The license of this code is the same as for the D-Bus interface description * it was derived from. Note that it links to GLib, so must comply with the * LGPL linking clauses. */ c sj � | }t | � dkD r�t j | � r9| j dd� }| j � dz }| j � dz }nQt j | � j � dz }t j | � j � dz }nd}d}|||fS )N� �_� )�lenr Zis_ugly_caseZreplace�upper�lower�camel_case_to_uscore)� namespaceZns�ns_upper�ns_lowers �&/usr/share/glib-2.0/codegen/codegen.py�generate_namespacer * s� � � �B� �9�~������i�(��"�"�3��+�B� ���(�3�.�H� ���(�3�.�H��1�1�)�<�B�B�D�s�J�H��1�1�)�<�B�B�D�s�J�H�������(�#�#� c sl �� | dk( ryd�dj t �fd�| j � � � S )NZ-ZSTDOUTZ$0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZr c s �� | �v r| S dS )Nr � )Zc�safe_valid_charss �r Z<lambda>z'generate_header_guard.<locals>.<lambda>C s �� �1� 0�0�a�9�c�9r )�joinZmapr )�header_namer s @r �generate_header_guardr ; s; �� ��c��� >�� �7�7��9�;�;L�;L�;N�O�� r c s* � e Zd Zd� Zd� Zd� Zd� Zd� Zy)�HeaderCodeGeneratorc s� � || _ t |� \ | _ | _ | _ || _ || _ t |� | _ || _ || _ || _ | | _ | | _ || _ y �N)�ifacesr r r r �generate_objmanager�generate_autocleanupr �header_guard�input_files_basenames� use_pragma�glib_min_required�symbol_decorator�symbol_decorator_header�outfile)�selfr r r r r r r r r r! r"