001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.hal;
006
007/**
008 * Usage Reporting JNI Functions.
009 *
010 * @see "hal/UsageReporting.h"
011 */
012public class UsageReportingJNI extends JNIWrapper {
013  /**
014   * Reports usage of a resource of interest. Repeated calls for the same resource name replace the
015   * previous report.
016   *
017   * @param resource the used resource name
018   * @param data arbitrary associated data string
019   * @return a handle
020   */
021  public static native int report(String resource, String data);
022
023  /** Utility class. */
024  private UsageReportingJNI() {}
025}