§
    8j  ã                  óh   — d Z ddlmZ ddlmZ ddlmZ ddlmZ erddl	m
Z
 eZ G d„ d	¦  «        Zd
S )a‡  Multicast DNS Service Discovery for Python, v0.14-wmcbrine
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine

This module provides a framework for the use of DNS Service Discovery
using IP multicast.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
é    )Úannotations)ÚTYPE_CHECKINGé   )Ú	DNSRecord)ÚRecordUpdate)ÚZeroconfc                  ó*   — e Zd ZdZdd
„Zdd„Zdd„ZdS )ÚRecordUpdateListenerz°Base call for all record listeners.

    All listeners passed to async_add_listener should use RecordUpdateListener
    as a base class. In the future it will be required.
    Úzcr   ÚnowÚfloatÚrecordr   ÚreturnÚNonec                ó    — t          d¦  «        ‚)z¢Update a single record.

        This method is deprecated and will be removed in a future version.
        update_records should be implemented instead.
        zDupdate_record is deprecated and will be removed in a future version.)ÚRuntimeError)Úselfr   r   r   s       úG/home/user/adhan/venv/lib/python3.11/site-packages/zeroconf/_updates.pyÚupdate_recordz"RecordUpdateListener.update_record,   s   € õ ÐaÑbÔbÐbó    Úfloat_Úrecordsúlist[RecordUpdate]c                óH   — |D ]}|                       |||j        ¦  «         ŒdS )a„  Update multiple records in one shot.

        All records that are received in a single packet are passed
        to update_records.

        This implementation is a compatibility shim to ensure older code
        that uses RecordUpdateListener as a base class will continue to
        get calls to update_record. This method will raise
        NotImplementedError in a future version.

        At this point the cache will not have the new records

        Records are passed as a list of RecordUpdate.  This
        allows consumers of async_update_records to avoid cache lookups.

        This method will be run in the event loop.
        N)r   Únew)r   r   r   r   r   s        r   Úasync_update_recordsz)RecordUpdateListener.async_update_records6   s:   € ð$ ð 	4ð 	4ˆFØ×Ò˜r 3¨¬
Ñ3Ô3Ð3Ð3ð	4ð 	4r   c                ó   — dS )z´Called when a record update has completed for all handlers.

        At this point the cache will have the new records.

        This method will be run in the event loop.
        N© )r   s    r   Úasync_update_records_completez2RecordUpdateListener.async_update_records_completeK   s   € € € r   N)r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r
   r
   %   s^   € € € € € ðð ðcð cð cð cð4ð 4ð 4ð 4ð*ð ð ð ð ð r   r
   N)r#   Ú
__future__r   Útypingr   Ú_dnsr   Ú_record_updater   Ú_corer   r   r   r
   r   r   r   ú<module>r)      s¬   ððð ð, #Ð "Ð "Ð "Ð "Ð "à  Ð  Ð  Ð  Ð  Ð  à Ð Ð Ð Ð Ð Ø (Ð (Ð (Ð (Ð (Ð (àð  ØÐÐÐÐÐð 
€ð,ð ,ð ,ð ,ð ,ñ ,ô ,ð ,ð ,ð ,r   