mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Changes HAL Headers to be C compliant. (#171)
This commit is contained in:
committed by
Peter Johnson
parent
1b1ee7f9f3
commit
edf5ecd4a0
@@ -24,7 +24,9 @@ typedef int STATUS;
|
||||
|
||||
typedef pthread_t* TASK;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
// Note: These constants used to be declared extern and were defined in
|
||||
// Task.cpp. This caused issues with the JNI bindings for java, and so the
|
||||
// instantiations were moved here.
|
||||
@@ -33,4 +35,6 @@ const int32_t HAL_TaskLib_ILLEGAL_PRIORITY = 22; // 22 is EINVAL
|
||||
STATUS HAL_VerifyTaskID(TASK task);
|
||||
STATUS HAL_SetTaskPriority(TASK task, int priority); // valid priority [1..99]
|
||||
STATUS HAL_GetTaskPriority(TASK task, int* priority);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user