Generated file

Copy as Markdown

Other Tools

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef speculationrules_ffi_generated_h
#define speculationrules_ffi_generated_h
/* Generated with cbindgen:0.29.4 */
/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. See RunCbindgen.py */
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
#include "nsStringFwd.h"
#include "nsTArrayForwardDeclare.h"
namespace mozilla::dom {
class SpeculationRuleSet;
}
namespace mozilla {
namespace dom {
enum class SpeculationRuleParseError {
None,
TopLevelValueMustBeJsonObject,
InvalidTag,
InvalidBaseUrl,
};
extern "C" {
mozilla::dom::SpeculationRuleSet *parse_speculation_rule_set(const nsACString *aRules,
const nsACString *aDocumentBaseUrl,
const nsACString *aBaseUrl,
SpeculationRuleParseError *aParseError);
void speculation_rule_set_destroy(mozilla::dom::SpeculationRuleSet *aRules);
} // extern "C"
} // namespace dom
} // namespace mozilla
#endif // speculationrules_ffi_generated_h