Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/ml/nsIMLUtils.idl
*/
#ifndef __gen_nsIMLUtils_h__
#define __gen_nsIMLUtils_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIMLUtils */
#define NS_IMLUTILS_IID_STR "a2568d74-be41-46a5-abfc-6dbab0b80f95"
#define NS_IMLUTILS_IID \
{0xa2568d74, 0xbe41, 0x46a5, \
{ 0xab, 0xfc, 0x6d, 0xba, 0xb0, 0xb8, 0x0f, 0x95 }}
class NS_NO_VTABLE nsIMLUtils : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMLUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMLUtils;
/* boolean hasEnoughMemoryToInfer (in unsigned long long aModelSizeInMemory, in unsigned long aThresholdPercentage, in unsigned long long aMinMemoryRequirement); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HasEnoughMemoryToInfer(uint64_t aModelSizeInMemory, uint32_t aThresholdPercentage, uint64_t aMinMemoryRequirement, bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMLUtils, NS_IMLUTILS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMLUTILS \
NS_IMETHOD HasEnoughMemoryToInfer(uint64_t aModelSizeInMemory, uint32_t aThresholdPercentage, uint64_t aMinMemoryRequirement, bool *_retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMLUTILS \
nsresult HasEnoughMemoryToInfer(uint64_t aModelSizeInMemory, uint32_t aThresholdPercentage, uint64_t aMinMemoryRequirement, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMLUTILS(_to) \
NS_IMETHOD HasEnoughMemoryToInfer(uint64_t aModelSizeInMemory, uint32_t aThresholdPercentage, uint64_t aMinMemoryRequirement, bool *_retval) override { return _to HasEnoughMemoryToInfer(aModelSizeInMemory, aThresholdPercentage, aMinMemoryRequirement, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMLUTILS(_to) \
NS_IMETHOD HasEnoughMemoryToInfer(uint64_t aModelSizeInMemory, uint32_t aThresholdPercentage, uint64_t aMinMemoryRequirement, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasEnoughMemoryToInfer(aModelSizeInMemory, aThresholdPercentage, aMinMemoryRequirement, _retval); }
#endif /* __gen_nsIMLUtils_h__ */