kinect/codes/Azure-Kinect-Sensor-SDK/tests/UnitTests/handle_ut/handle_ut.h

35 lines
642 B
C
Raw Normal View History

2024-03-06 18:05:53 +00:00
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifdef __cplusplus
#include <cinttypes>
#else
#include <inttypes.h>
#endif
// Module being tested
#include <k4ainternal/handle.h>
#ifdef __cplusplus
extern "C" {
#endif
K4A_DECLARE_HANDLE(dual_defined_t);
typedef struct
{
int my;
int data;
} dual_defined_context_t;
// Declare a handle for the context
K4A_DECLARE_CONTEXT(dual_defined_t, dual_defined_context_t);
// Shared function prototype
int is_handle_in_2nd_file_valid(dual_defined_t handle);
int is_handle_in_c_file_valid(dual_defined_t handle);
#ifdef __cplusplus
}
#endif