WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
UsageReporting.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <stdint.h>
8
9#include "wpi/util/string.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/**
16 * Reports usage of a resource of interest. Repeated calls for the same
17 * resource name replace the previous report.
18 *
19 * @param resource the used resource name; convention is to suffix with
20 * "[instanceNum]" for multiple instances of the same
21 * resource
22 * @param data arbitrary associated data string
23 */
24void HAL_ReportUsage(const struct WPI_String* resource,
25 const struct WPI_String* data);
26
27#ifdef __cplusplus
28} // extern "C"
29#endif
void HAL_ReportUsage(const struct WPI_String *resource, const struct WPI_String *data)
Reports usage of a resource of interest.
A const UTF8 string.
Definition string.h:12