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 mozannotation_server_ffi_generated_h
#define mozannotation_server_ffi_generated_h
/* Generated with cbindgen:0.26.0 */
/* 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 "nsString.h"
#include "nsTArrayForwardDeclare.h"
struct AnnotationData {
enum class Tag {
Empty,
ByteBuffer,
};
struct ByteBuffer_Body {
nsTArray<uint8_t> _0;
};
Tag tag;
union {
ByteBuffer_Body byte_buffer;
};
};
struct CAnnotation {
uint32_t id;
AnnotationData data;
};
extern "C" {
/// Return the annotations of a given process.
///
/// This function will be exposed to C++
nsTArray<CAnnotation> *mozannotation_retrieve(uintptr_t process, uintptr_t max_annotations);
/// Free the annotations returned by `mozannotation_retrieve()`.
///
/// # Safety
///
/// `ptr` must contain the value returned by a call to
/// `mozannotation_retrieve()` and be called only once.
void mozannotation_free(nsTArray<CAnnotation> *ptr);
} // extern "C"
#endif // mozannotation_server_ffi_generated_h