
    |;iB	                        d Z ddlmZ ddlZddlmZmZmZ erddlm	Z	 ej                   G d dej                               Z G d	 d
      Z G d d      Z G d d      Zy)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
    )annotationsN)TYPE_CHECKINGAnyCallable   )Zeroconfc                      e Zd ZdZdZdZy)ServiceStateChange   r      N)__name__
__module____qualname__AddedRemovedUpdated     N/home/ubuntu/myenv/lib/python3.12/site-packages/zeroconf/_services/__init__.pyr
   r
       s    EGGr   r
   c                  $    e Zd ZddZddZddZy)ServiceListenerc                    t         NNotImplementedErrorselfzctype_names       r   add_servicezServiceListener.add_service(       !!r   c                    t         r   r   r   s       r   remove_servicezServiceListener.remove_service+   r"   r   c                    t         r   r   r   s       r   update_servicezServiceListener.update_service.   r"   r   N)r   r   r   strr    r'   returnNone)r   r   r   r!   r$   r&   r   r   r   r   r   '   s    """r   r   c                  2    e Zd ZdZddZddZedd       Zy)	Signal	_handlersc                    g | _         y r   r,   r   s    r   __init__zSignal.__init__5   s	    46r   c                <    | j                   d d  D ]
  } |di |  y )Nr   r,   )r   kwargshs      r   firezSignal.fire8   s#    " 	AKK	r   c                ,    t        | j                        S r   )SignalRegistrationInterfacer-   r/   s    r   registration_interfacezSignal.registration_interface<   s    *4>>::r   N)r(   r)   )r2   r   r(   r)   )r(   r6   )r   r   r   	__slots__r0   r4   propertyr7   r   r   r   r+   r+   2   s%    I7 ; ;r   r+   c                  (    e Zd ZdZddZddZddZy)r6   r,   c                    || _         y r   r,   )r   handlerss     r   r0   z$SignalRegistrationInterface.__init__D   s	    !r   c                <    | j                   j                  |       | S r   )r-   appendr   handlers     r   register_handlerz,SignalRegistrationInterface.register_handlerG       g&r   c                <    | j                   j                  |       | S r   )r-   remover?   s     r   unregister_handlerz.SignalRegistrationInterface.unregister_handlerK   rB   r   N)r<   zlist[Callable[..., None]]r(   r)   )r@   zCallable[..., None]r(   r6   )r   r   r   r8   r0   rA   rE   r   r   r   r6   r6   A   s    I"r   r6   )__doc__
__future__r   enumtypingr   r   r   _corer   uniqueEnumr
   r   r+   r6   r   r   r   <module>rM      s_   , #  / /    " "; ; r   