mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
/* Copyright (c) FIRST 2017. All Rights Reserved. */
|
||
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||
|
|
/* the project. */
|
||
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
#include "MockData/NotifyListenerVector.h"
|
||
|
|
|
||
|
|
std::shared_ptr<hal::NotifyListenerVector> RegisterCallback(
|
||
|
|
std::shared_ptr<hal::NotifyListenerVector> currentVector, const char* name,
|
||
|
|
HAL_NotifyCallback callback, void* param, int32_t* newUid);
|
||
|
|
|
||
|
|
std::shared_ptr<hal::NotifyListenerVector> CancelCallback(
|
||
|
|
std::shared_ptr<hal::NotifyListenerVector> currentVector, int32_t uid);
|
||
|
|
|
||
|
|
void InvokeCallback(std::shared_ptr<hal::NotifyListenerVector> currentVector,
|
||
|
|
const char* name, const HAL_Value* value);
|