Debian Codegraph @

src/vendor/azure-uamqp-c/deps/umock-c/inc/umock_c/umockcallpairs.h

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 #ifndef UMOCKCALLPAIRS_H
5 #define UMOCKCALLPAIRS_H
6
7 #ifdef __cplusplus
8 #include <cstddef>
9 #else
10 #include <stddef.h>
11 #endif
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 typedef struct PAIRED_HANDLE_TAG
18 {
19 void* handle_value;
20 char* handle_type;
21 } PAIRED_HANDLE;
22
23 typedef struct PAIRED_HANDLES_TAG
24 {
25 PAIRED_HANDLE* paired_handles;
26 size_t paired_handle_count;
27 } PAIRED_HANDLES;
28
29 int umockcallpairs_track_create_paired_call(PAIRED_HANDLES* paired_handles, const void* handle, const char* handle_type, size_t handle_type_size);
30 int umockcallpairs_track_destroy_paired_call(PAIRED_HANDLES* paired_handles, const void* handle);
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif /* UMOCKCALLPAIRS_H */