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/. */
/* Generated with cbindgen:0.29.1 */
/* 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 "nsError.h"
#include "nsString.h"
#include "nsTArray.h"
struct ContentClassifierFFIEngine;
extern "C" {
nsresult content_classifier_initialize_domain_resolver();
void content_classifier_teardown_domain_resolver();
nsresult content_classifier_engine_from_rules(const nsTArray<nsCString> *rules,
ContentClassifierFFIEngine **out_engine);
void content_classifier_engine_destroy(ContentClassifierFFIEngine *engine);
nsresult content_classifier_engine_check_network_request_preparsed(const ContentClassifierFFIEngine *engine,
const nsACString *url,
const nsACString *schemeless_site,
const nsACString *source_schemeless_site,
const nsACString *request_type,
bool third_party,
bool *out_matched,
bool *out_important,
nsCString *out_exception);
} // extern "C"