Interface MDBMsgFuncI

  • All Superinterfaces:
    CallbackI, CallbackI.I, Pointer
    All Known Implementing Classes:
    MDBMsgFunc
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MDBMsgFuncI
    extends CallbackI.I
    A callback function used to print a message from the library.

    Type

    
     int (*) (
         char const *msg,
         void *ctx
     )
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        Returns:
        the dyncall signature
      • callback

        default int callback​(long args)
        Description copied from interface: CallbackI.I
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.I
        Parameters:
        args - pointer to a DCArgs iterator
        Returns:
        the value to store to the result DCValue
      • invoke

        int invoke​(long msg,
                   long ctx)
        A callback function used to print a message from the library.
        Parameters:
        msg - the string to be printed
        ctx - an arbitrary context pointer for the callback
        Returns:
        < 0 on failure, ≥ 0 on success