Current File : //usr/lib/python3/dist-packages/dbus/__pycache__/service.cpython-312.pyc
�

@ia����dZdZddlZddlZddlZddlZ	ddlmZddl
Z
ddlmZm
Z
mZmZmZmZmZddlmZmZddlmZmZmZddlmZmZmZdd	lmZdd
l m!Z!ejDd�Z#Gd�d
e$�Z%Gd�de$�Z&d�Z'd�Z(d�Z)Gd�de*�Z+e+de$fi�Z,e$�Z-Gd�de,�Z.Gd�de.�Z/y#e$r	ddl	mZY��wxYw))�BusName�Object�FallbackObject�method�signal�restructuredtext�N)�Sequence)�INTROSPECTABLE_IFACE�
ObjectPath�
SessionBus�	Signature�Struct�validate_bus_name�validate_object_path)rr)�
DBusException�NameExistsException�UnknownMethodException)�ErrorMessage�MethodReturnMessage�MethodCallMessage)�
LOCAL_PATH)�is_py2zdbus.servicec��eZdZdZd�Zd�Zy)�_VariantSignaturez�A fake method signature which, when iterated, yields an endless stream
    of 'v' characters representing variants (handy with zip()).

    It has no string representation.
    c��|S)zReturn self.���selfs �./usr/lib/python3/dist-packages/dbus/service.py�__iter__z_VariantSignature.__iter__>s����c��y)zReturn 'v' whenever called.�vrrs r�__next__z_VariantSignature.__next__Bs��r!N)�__name__�
__module__�__qualname__�__doc__r r$rr!rrr8s���
�r!rc�:�eZdZdZd	d�Zd�Zd�Zd�Zd�Zd�Z	e	Z
y)
raaA base class for exporting your own Named Services across the Bus.

    When instantiated, objects of this class attempt to claim the given
    well-known name on the given bus for the current process. The name is
    released when the BusName object becomes unreferenced.

    If a well-known name is requested multiple times, multiple references
    to the same BusName object will be returned.

    :Caveats:

        - Assumes that named services are only ever requested using this class -
          if you request names from the bus directly, confusion may occur.
        - Does not handle queueing.
    Nc��t|dd��|�&ddl}|jdtd��t	�}||j
vr|j
|S|xrtjxsd|xrtjxsdz|xrtjxsdz}|j||�}|tjk(rnW|tjk(rnC|tjk(rt|��|tjk(rnt!d	|�d
|����t"j%|�}	||	_||	_|	|j
|<|	S)aSConstructor, which may either return an existing cached object
        or a new object.

        :Parameters:
            `name` : str
                The well-known name to be advertised
            `bus` : dbus.Bus
                A Bus on which this service will be advertised.

                Omitting this parameter or setting it to None has been
                deprecated since version 0.82.1. For backwards compatibility,
                if this is done, the global shared connection to the session
                bus will be used.

            `allow_replacement` : bool
                If True, other processes trying to claim the same well-known
                name will take precedence over this one.
            `replace_existing` : bool
                If True, this process can take over the well-known name
                from other processes already holding it.
            `do_not_queue` : bool
                If True, this service will not be placed in the queue of
                services waiting for the requested name if another service
                already holds it.
        TF)�allow_well_known�allow_uniqueNrzKOmitting the "bus" parameter to dbus.service.BusName.__init__ is deprecated�)�
stacklevelzrequesting bus name z returned unexpected value )r�warnings�warn�DeprecationWarningr�
_bus_names�_dbus_bindings�NAME_FLAG_ALLOW_REPLACEMENT�NAME_FLAG_REPLACE_EXISTING�NAME_FLAG_DO_NOT_QUEUE�request_name� REQUEST_NAME_REPLY_PRIMARY_OWNER�REQUEST_NAME_REPLY_IN_QUEUE�REQUEST_NAME_REPLY_EXISTSr� REQUEST_NAME_REPLY_ALREADY_OWNER�RuntimeError�object�__new__�_bus�_name)
�cls�name�bus�allow_replacement�replace_existing�do_not_queuer/�
name_flags�retval�bus_names
          rr>zBusName.__new__WsT��4	�$��E�J��;���M�M�H�,��
�
<��,�C��3�>�>�!��>�>�$�'�'��
M�>�#M�#M�
R�QR�
�
K�.�"K�"K�
P�q�
R�
�
C�n�C�C�
H�q�
J�	�
�!�!�$�
�3���^�D�D�D��
�~�A�A�
A�
�
�~�?�?�
?�%�d�+�+�
�~�F�F�
F�
��X\�^d�e�f�f��>�>�#�&����
���� (����t���r!c��y�Nr)r�args�keywordss   r�__init__zBusName.__init__�s��r!c�N�|jj|j�yrK)r?�release_namer@rs r�__del__zBusName.__del__�s���	�	���t�z�z�*�r!c��|jS)zGet the Bus this Service is on)r?rs r�get_buszBusName.get_bus�s���y�y�r!c��|jS)zGet the name of this service)r@rs r�get_namezBusName.get_name�s���z�z�r!c�L�d|j|jt|�fzS)Nz&<dbus.service.BusName %s on %r at %#x>)r@r?�idrs r�__repr__zBusName.__repr__�s#��7�4�:�:�t�y�y�RT�UY�RZ�:[�[�[r!)NFFF)r%r&r'r(r>rNrQrSrUrX�__str__rr!rrrGs-���K�^
�

���\��Gr!rc�r�d}d}d}|�r|jjD]�}|sx||jvrjd|j|jvrMd|j|jvr2|j|j|k(r|}|j|}d}n�n|}|s��||jvs��d|j|jvs��d|j|jvs��|j|j|k(s��|j|}d}nonm|jjD]T}|s||jvr|}|s�||jvs�'d|j|jvs�C|j|}d}n|r|j||fS|rt	|�d|����t	d|z��)z�Walks the Python MRO of the given class to find the method to invoke.

    Returns two methods, the one to call, and the one it inherits from which
    defines its D-Bus interface name, signature, and attributes.
    NF�_dbus_is_method�_dbus_interfaceTz$ is not a valid method of interface z%s is not a valid method)�	__class__�__mro__�__dict__r\r)r�method_name�dbus_interface�
parent_method�candidate_class�
successfulrAs       r�_method_lookupre�s����M��O��J���>�>�)�)�	�C�$��s�|�|�(C�%����k�)B�)K�)K�K�)�S�\�\�+�-F�-O�-O�O��|�|�K�0�@�@�N�R�*-��(+���[�(A�
�%)�
���&)�O�
 �K�3�<�<�$?�%����k�)B�)K�)K�K�%����k�)B�)K�)K�K��L�L��-�=�=��O�!$���[� 9�
�!�
��;	�B�>�>�)�)�	�C�#��s�|�|�(C�"%���K�3�<�<�$?�%����k�)B�)K�)K�K� #���[� 9�
�!�
��	���(�(��5�}�E�E��(�Wb�dr�)s�t�t�(�)C�k�)Q�R�Rr!c��t|�}	|j|d|i�|j�s|j|�yy#t$r�}tj�|�J	|j|�dz}n4#t$r(}tjd||j|��d}~wwxYwtjd|||j|��d}~wwxYw)N�	signaturez
 (guessed)z2Unable to guess signature for arguments %r: %s: %sz8Unable to append %r to message with signature %s: %s: %s)r�append�	Exception�logging�basicConfig�guess_signature�_logger�errorr]�get_no_reply�send_message)�
connection�messager`rgrH�reply�es       r�_method_reply_returnru�s�����(�E�
�����6�2�y�2����!�����&�"����������
�!�1�1�&�9�L�H�	���
��
�
�'�(.����Q�@���
��	�
�
�� &�	�1�;�;��	C�
���s;�A�	C�C�"A7�6C�7	B(�#B#�#B(�('C�Cc�^�t|dd�}|�nOt|dd�dvrd|jjz}n&d|j�d|jj��}t	j
�\}}}t
|t�r|js|j�}nZ||ur'djtj|||��}n/djtj|j|��}t|||�}|j�s|j!|�yy)N�_dbus_error_namer&�)rx�__main__zorg.freedesktop.DBus.Python.%szorg.freedesktop.DBus.Python.�.)�getattrr]r%r&�sys�exc_info�
isinstancer�include_traceback�get_dbus_message�join�	traceback�format_exception�format_exception_onlyrrorp)	rqrr�	exceptionrB�et�ev�etb�contentsrss	         r�_method_reply_errorr�s���9�0�$�7�D����	��L�"�	-�1A�	A�/�)�2E�2E�2N�2N�N��
B�7@�6J�6J�I�L_�L_�Lh�Lh�i���,�,�.�K�B��C��)�]�+�I�4O�4O��-�-�/��	�y���7�7�9�5�5�b�"�c�B�C��
�7�7�9�:�:�9�;N�;N�������$��1�E����!�����&�"r!c�*��eZdZ�fd�Zd�Zd�Z�xZS)�
InterfaceTypec���t|di�}||_ix}||jdz|z<|D]j}|jdz|jz}t|dd�s�-||j	�D](\}}	|j|i�}
|
j
|	��*�l|j�D];}t|dd�s�|j|ji�}	||	|j<�=tt|�/|||�y)N�_dbus_class_tablerzFr\)r{r�r&r%�items�
setdefault�update�valuesr\�superr�rN)
rArB�bases�dct�class_table�interface_table�b�	base_name�	interface�method_table�our_method_table�funcr]s
            �rrNzInterfaceType.__init__1s����c�#6��;�� +���EG�G��+�c�n�n�s�&:�T�&A�B��	:�A����s�*�Q�Z�Z�7�I��q�-�u�5�1<�Y�1G�1M�1M�1O�:�-�Y��'6�'A�'A�)�R�'P�$�$�+�+�L�9�:�	:��J�J�L�	3�D��t�.��6�.�9�9�$�:N�:N�PR�S��.2��T�]�]�+�	3�
	�m�S�*�4���<r!c�H�|j}|jrtt|j��}n
t	�}|j
rt|j
�}ng}d|jz}t||�D]
}|d|zz
}�|D]
}|d|zz
}�|dz
}|S)Nz    <method name="%s">
z2      <arg direction="in"  type="%s" name="%s" />
z(      <arg direction="out" type="%s" />
z    </method>
)�
_dbus_args�_dbus_in_signature�tupler
r�_dbus_out_signaturer%�zip)rAr�rL�in_sig�out_sig�reflection_data�pair�types        r�_reflect_on_methodz InterfaceType._reflect_on_methodKs��������"�"��9�T�%<�%<�=�>�F�'�(�F��#�#��� 8� 8�9�G�
�G�4��
�
�F�����%�	\�D��T�W[�[�[�O�	\��	R�D��J�T�Q�Q�O�	R��,�,���r!c���|j}|jrtt|j��}n
t	�}d|j
z}t
||�D]
}|d|zz}�|dz}|S)Nz    <signal name="%s">
z"      <arg type="%s" name="%s" />
z    </signal>
)r��_dbus_signaturer�r
rr%r�)rAr�rL�sigr�r�s      r�_reflect_on_signalz InterfaceType._reflect_on_signalhs|����������	�$�"6�"6�7�8�C�$�%�C�4��
�
�F����T�N�	]�D�-�0U�X\�0\�\�O�	]�)�,=�=���r!)r%r&r'rNr�r��
__classcell__�r]s@rr�r�0s���=�4�:r!r��	Interfacec��eZdZdZdZdZdd�Zed��Zed��Z	ed��Z
d�Zdd	�Zd
�Z
d�Zeedd
dd��d��Zd�ZeZy)ra�A base class for exporting your own Objects across the Bus.

    Just inherit from Object and mark exported methods with the
    @\ `dbus.service.method` or @\ `dbus.service.signal` decorator.

    Example::

        class Example(dbus.service.object):
            def __init__(self, object_path):
                dbus.service.Object.__init__(self, dbus.SessionBus(), path)
                self._last_input = None

            @dbus.service.method(interface='com.example.Sample',
                                 in_signature='v', out_signature='s')
            def StringifyVariant(self, var):
                self.LastInputChanged(var)      # emits the signal
                return str(var)

            @dbus.service.signal(interface='com.example.Sample',
                                 signature='v')
            def LastInputChanged(self, var):
                # run just before the signal is actually emitted
                # just put "pass" if nothing should happen
                self._last_input = var

            @dbus.service.method(interface='com.example.Sample',
                                 in_signature='', out_signature='v')
            def GetLastInput(self):
                return self._last_input
    FNc�R�|�t|�t|t�r|}|j�}n|�|�|j�}d|_d|_g|_tj�|_	d|_
||_|�
|�td��|�|�|j||�yyy)aConstructor. Either conn or bus_name is required; object_path
        is also required.

        :Parameters:
            `conn` : dbus.connection.Connection or None
                The connection on which to export this object.

                If None, use the Bus associated with the given ``bus_name``.
                If there is no ``bus_name`` either, the object is not
                initially available on any Connection.

                For backwards compatibility, if an instance of
                dbus.service.BusName is passed as the first parameter,
                this is equivalent to passing its associated Bus as
                ``conn``, and passing the BusName itself as ``bus_name``.

            `object_path` : str or None
                A D-Bus object path at which to make this Object available
                immediately. If this is not None, a `conn` or `bus_name` must
                also be provided.

            `bus_name` : dbus.service.BusName or None
                Represents a well-known name claimed by this process. A
                reference to the BusName object will be held by this
                Object, preventing the name from being released during this
                Object's lifetime (unless it's released manually).
        NFz<If object_path is given, either conn or bus_name is required)rr~rrS�_object_path�_connection�
_locations�	threading�Lock�_locations_lock�	_fallbackr@�	TypeError�add_to_connection)r�conn�object_pathrIs    rrNzObject.__init__�s���8�"� ��-��d�G�$��H��#�#�%�D�
�\��#��'�'�)��!���������(�~�~�/��������
��<�K�3��*�+�
+���� 7��"�"�4��5�!8�r!c��|jturtd|z��|j�td|z��|jS)z�The object-path at which this object is available.
        Access raises AttributeError if there is no object path, or more than
        one object path.

        Changed in 0.82.0: AttributeError can be raised.
        zEObject %r has more than one object path: use Object.locations insteadz Object %r has no object path yet)r��_MANY�AttributeErrorrs r�__dbus_object_path__zObject.__dbus_object_path__�sY������%� �"@�BF�"G�H�
H�
�
�
�
&� �!C�d�!J�K�K��$�$�$r!c��|jturtd|z��|j�td|z��|jS)z�The Connection on which this object is available.
        Access raises AttributeError if there is no Connection, or more than
        one Connection.

        Changed in 0.82.0: AttributeError can be raised.
        zFObject %r is on more than one Connection: use Object.locations insteadzObject %r has no Connection yet)r�r�r�rs rrqzObject.connection�sY�����u�$� �"@�BF�"G�H�
H�
�
�
�
%� �!B�T�!I�J�J��#�#�#r!c�,�t|j�S)aeAn iterable over tuples representing locations at which this
        object is available.

        Each tuple has at least two items, but may have more in future
        versions of dbus-python, so do not rely on their exact length.
        The first two items are the dbus.connection.Connection and the object
        path.

        :Since: 0.82.0
        )�iterr�rs r�	locationszObject.locationss���D�O�O�$�$r!c�N�|tk(rtdtz��|jj�	|j�4|j|ur&|j
st|�d|j����|j�5|js)|j|k7rt|�d|j����|j||j|j|j�|j�||_n|j|urt|_|j�||_n|j|k7rt|_|jj|||jf�|jj�y#|jj�wxYw)aNMake this object accessible via the given D-Bus connection and
        object path.

        :Parameters:
            `connection` : dbus.connection.Connection
                Export the object on this connection. If the class attribute
                SUPPORTS_MULTIPLE_CONNECTIONS is False (default), this object
                can only be made available on one connection; if the class
                attribute is set True by a subclass, the object can be made
                available on more than one connection.

            `path` : dbus.ObjectPath or other str
                Place the object at this object path. If the class attribute
                SUPPORTS_MULTIPLE_OBJECT_PATHS is False (default), this object
                can only be made available at one object path; if the class
                attribute is set True by a subclass, the object can be made
                available with more than one object path.

        :Raises ValueError: if the object's class attributes do not allow the
            object to be exported in the desired way.
        :Since: 0.82.0
        z3Objects may not be exported on the reserved path %sNz# is already exported on connection z$ is already exported at object path )r�
ValueErrorr��acquirer��SUPPORTS_MULTIPLE_CONNECTIONSr��SUPPORTS_MULTIPLE_OBJECT_PATHS�_register_object_path�_message_cb�_unregister_cbr�r�r�rh�release)rrq�paths   rr�zObject.add_to_connections���.�:���'�)3�4�5�
5�	
���$�$�&�	+�� � �,�� � �
�2��6�6� �48�$�:J�:J�"L�M�M��!�!�-��7�7��!�!�T�)� �.2�D�4E�4E�"G�H�H�
�,�,�T�4�3C�3C�-1�-@�-@�-1�^�^�
=����'�#-�� ��!�!��3�#(�� �� � �(�$(��!��"�"�d�*�$)��!��O�O�"�"�J��d�n�n�#E�F�� � �(�(�*��D� � �(�(�*�s�D6F�F$c��|jj�	|j�|j�t	d|z��|�|�:g}|j
D](}|�|d|us�
|�	|d|k(s�|j
|��*n|j
}g|_|st	|�d|�d|�d���|D]C}	|dj|d�|j
s�(	|j
j|��E	|jj�y#t$rY�RwxYw#t$rY�|wxYw#|jj�wxYw)aMake this object inaccessible via the given D-Bus connection
        and object path. If no connection or path is specified,
        the object ceases to be accessible via any connection or path.

        :Parameters:
            `connection` : dbus.connection.Connection or None
                Only remove the object from this Connection. If None,
                remove from all Connections on which it's exported.
            `path` : dbus.ObjectPath or other str, or None
                Only remove the object from this object path. If None,
                remove from all object paths.
        :Raises LookupError:
            if the object was not exported on the requested connection
            or path, or (if both are None) was not exported at all.
        :Since: 0.81.1
        Nz%r is not exportedr�z) is not exported at a location matching (�,�))r�r�r�r��LookupErrorr�rh�_unregister_object_path�remover�r�)rrqr��dropped�locations     r�remove_from_connectionzObject.remove_from_connectionUs`��"	
���$�$�&�	+�� � �(�D�,<�,<�,D�!�"6��"=�>�>��%��)9��� $���1�H�#�+�x��{�j�/H����!���)<����x�0�1�
�/�/��"$����!�/3�Z��#G�H�H�$�	
����Q�K�7�7����D��?�?�����.�.�x�8�	
�
� � �(�(�*��#�����
&�����
� � �(�(�*�sa�AD+�!
D+�,AD+�/D
�D+�D�/D+�
	D�D+�D�D+�	D(�%D+�'D(�(D+�+Ec�2�tjd||�y)Nz5Unregistering exported object %r from some path on %r)rm�info)rrqs  rr�zObject._unregister_cb�s������"�J�	0r!c�������t�t�sy	�j���j�}t	|�|�\}}�j
di|j��}i}|j�t|j��nd�|jr#|j\}}	����fd�||<��fd�||	<|jr�j�||j<|jr�j�||j<|jr��j�}
|
}|jD]b}|d�us�|
|dk(rd}nN|ddk(r� |
j!|ddz�s�8|
t#|d�d}
t#|
�t#|�ks�a|
}�dt%|�}|||j<|j&r�j)�||j&<|j*r�||j*<|j,r�||j,<||g|��i|��}|jry��ct/��}t#|�dk(r|dk(rd}nkt1d�z��t#|�dk(r|f}nKt|t2�rn:t1��d��d	���|�d}n$t|t.�rt|t4�sn|f}t7����g|���y#t8$r}t;��|�Yd}~yd}~wwxYw)
Nc�"��t����g|���SrK)ru)rHrqrrr`rgs ����r�<lambda>z$Object._message_cb.<locals>.<lambda>�s'���<P�Q[�]d�fq�s|�=G�@F�=G�r!c���t��|�SrK)r�)r�rqrrs ��rr�z$Object._message_cb.<locals>.<lambda>�s���=P�Q[�]d�fo�=p�r!rr��/rz8%s has an empty output signature but did not return Nonez) has multiple output values in signature z but did not return a sequence)r~r�
get_member�
get_interfacere�
get_args_list�_dbus_get_args_optionsr�r
�_dbus_async_callbacks�_dbus_sender_keyword�
get_sender�_dbus_path_keyword�get_path�_dbus_rel_path_keywordr��
startswith�lenr�_dbus_destination_keyword�get_destination�_dbus_message_keyword�_dbus_connection_keywordr�r�r	rrurir�)rrqrr�interface_name�candidate_methodrbrLrM�return_callback�error_callbackr��rel_path�exp�suffixrH�signature_tupler�r`rgs ``              @@rr�zObject._message_cb�s����'�#4�5��h	@�!�,�,�.�K�$�2�2�4�N�0>�t�[�R`�0a�-�
�}�)�7�(�(�P�=�+O�+O�P�D��H��0�0�<�%�m�&G�&G�H�	� �	��2�2�4A�4W�4W�1��.�-G���)�+p���(��1�1�?F�?Q�?Q�?S���;�;�<��/�/�=D�=M�=M�=O���9�9�:��3�3��'�'�)�����?�?�2�C�
�1�v��+��3�q�6�>�'*�H�!��q�6�S�=�$��?�?�3�q�6�C�<�8�%)�#�c�!�f�+�,�%7�F�"�6�{�S��]�:�+1��!2�"&�h�/��AI���=�=�>��6�6�DK�D[�D[�D]���@�@�A��2�2�@G���<�<�=��5�5�CM���?�?�@�&�d�>�T�>�X�>�F��2�2��
�$�"'�	�"2����'�1�,���~�!#��'�(b�'�)(�)�)���)�Q�.�$�Y�F�!�&�(�3��'�(�)�)5�6�6�
�>��F� ���/�(���8��$�Y�F� ��W�k�9�V�v�V���	@��
�G�Y�?�?��	@�s2�D'K	�?,K	�,(K	�BK	�+BK	�		K)�
K$�$K)rx�sr�rq)�in_signature�
out_signature�path_keyword�connection_keywordc��tj}|d|zz
}|j|jjdz|jj
z}|j
�D]\}}|d|zz
}|j�D]Z}t|dd�r||jj|�z
}�/t|dd�s�=||jj|�z
}�\|dz
}��|j|�D]
}|d|zz
}�|d	z
}|S)
ziReturn a string of XML encoding this object's supported interfaces,
        methods and signals.
        z<node name="%s">
rzz  <interface name="%s">
r[F�_dbus_is_signalz  </interface>
z  <node name="%s"/>
z</node>
)r3�)DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODEr�r]r&r%r�r�r{r�r��list_exported_child_objects)rr�rqr��
interfacesrB�funcsr�s        r�
IntrospectzObject.Introspect�s'��)�R�R���/�+�=�=���+�+�D�N�N�,E�,E��,K�d�n�n�Ne�Ne�,e�f�
�'�-�-�/�		2�M�T�5��:�d�C�C�O�����
O���4�!2�E�:�#�t�~�~�'H�'H��'N�N�O��T�#4�e�<�#�t�~�~�'H�'H��'N�N�O�	
O�
�1�1�O�		2��:�:�;�G�	>�D��6��=�=�O�	>�	�;�&���r!c���d}|jtur|j�d|jz}d|jj|jj|t|�fzS)Nrxz at %sz<%s.%s%s at %#x>)r�r�r]r&r%rW)r�wheres  rrXzObject.__repr__se�������U�*��!�!�-��t�0�0�0�E�!�T�^�^�%>�%>�#'�>�>�#:�#:�E�#%�d�8�%-�-�	-r!)NNN�NN)r%r&r'r(r�r�rN�propertyr�rqr�r�r�r�r�rr
rrXrYrr!rrr�s����F&+�"�
%*�!�;6�z�
%��
%��
$��
$��%��%�9+�v/+�b0�
l@�\� �r��&�<�I��I��4-��Gr!rc�(��eZdZdZdZd�fd�	Z�xZS)rzaAn object that implements an entire subtree of the object-path
    tree.

    :Since: 0.82.0
    Tc���tt|��d|_|�|�t	d��y|�t	d��|j||�y)aHConstructor.

        Note that the superclass' ``bus_name`` __init__ argument is not
        supported here.

        :Parameters:
            `conn` : dbus.connection.Connection or None
                The connection on which to export this object. If this is not
                None, an `object_path` must also be provided.

                If None, the object is not initially available on any
                Connection.

            `object_path` : str or None
                A D-Bus object path at which to make this Object available
                immediately. If this is not None, a `conn` must also be
                provided.

                This object will implements all object-paths in the subtree
                starting at this object-path, except where a more specific
                object has been added.
        TNz)If object_path is given, conn is requiredz)If conn is given, object_path is required)r�rrNr�r�r�)rr�r�r]s   �rrNzFallbackObject.__init__(sW���.	�n�d�,�.�����<��&�� K�L�L�'�
�
 ��G�H�H��"�"�4��5r!r)r%r&r'r(r�rNr�r�s@rrrs����&*�"� 6� 6r!r)0�__all__�
__docformat__r|rjr�r��collections.abcr	�ImportError�collectionsr3�dbusr
rrr
rrr�dbus.decoratorsrr�dbus.exceptionsrrr�
dbus.lowlevelrrr�dbus.proxiesr�dbus._compatr�	getLoggerrmr=rrrerur�r�r�r�r�rrrr!r�<module>rs���8F��"�
�
����%�(�
�-�-�-�+�@�@�N�N�#���'�
�
�N�
+�����r�f�r�j?S�D'�*'�:H�D�H�Z
�+��y�"�5�	�
	���Y�Y�Y�v)6�V�)6��u�%�$�%�s�B?�?C
�C

¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!