parameters: ( self, type, handler = None )
docstring: Add a service that the browser should watch for
docstring_summary: Add a service that the browser should watch for
docstring_tokens: Add a service that the browser should watch for
function: def add_service( self, type, handler = None ):
          """
          Add a service that the browser should watch for
          """
          self.sbrowser = dbus.Interface(
              self.bus.get_object(
                  avahi.DBUS_NAME,
                  self.server.ServiceBrowserNew(
                      avahi.IF_UNSPEC,
                      avahi.PROTO_UNSPEC,
                      type,
                      'local',
                      dbus.UInt32(0)
                      )
                  ),
              avahi.DBUS_INTERFACE_SERVICE_BROWSER)
          self.handlers[ type ] = handler
          self.sbrowser.connect_to_signal("ItemNew", self._new_item_handler)
          self.sbrowser.connect_to_signal("ItemRemove", self._remove_item_handler)
function_tokens: def add_service ( self , type , handler = None ) : self . sbrowser = dbus . Interface ( self . bus . get_object ( avahi . DBUS_NAME , self . server . ServiceBrowserNew ( avahi . IF_UNSPEC , avahi . PROTO_UNSPEC , type , 'local' , dbus . UInt32 ( 0 ) ) ) , avahi . DBUS_INTERFACE_SERVICE_BROWSER ) self . handlers [ type ] = handler self . sbrowser . connect_to_signal ( "ItemNew" , self . _new_item_handler ) self . sbrowser . connect_to_signal ( "ItemRemove" , self . _remove_item_handler )