Schnittstelle Bus.OnBusSyncHandler

Umschließende Klasse:
Bus
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Bus.OnBusSyncHandler
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    onBusSyncHandler(CallbackHandler __self, Bus bus, Message message, Pointer user_data)
    Handler will be invoked synchronously, when a new message has been injected
    into the bus.
  • Methodendetails

    • onBusSyncHandler

      int onBusSyncHandler(CallbackHandler __self, @Nonnull Bus bus, @Nonnull Message message, @Nullable Pointer user_data)
      Handler will be invoked synchronously, when a new message has been injected
      into the bus. This function is mostly used internally. Only one sync handler
      can be attached to a given bus.

      If the handler returns %GST_BUS_DROP, it should unref the message, else the
      message should not be unreffed by the sync handler.
      Parameter:
      bus - the #GstBus that sent the message
      message - the #GstMessage
      user_data - user data that has been given, when registering the handler
      Gibt zurück:
      #GstBusSyncReply stating what to do with the message