Xin Zhang / azure-iot-c-sdk-f767zi

Dependents:   samplemqtt

uamqp/deps/umock-c/inc/umockcallpairs.h

Committer:
XinZhangMS
Date:
2018-08-23
Revision:
0:f7f1f0d76dd6

File content as of revision 0:f7f1f0d76dd6:

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#ifndef UMOCKCALLPAIRS_H
#define UMOCKCALLPAIRS_H

#ifdef __cplusplus
#include <cstddef>
extern "C" {
#else
#include <stddef.h>
#endif

typedef struct PAIRED_HANDLE_TAG
{
    void* handle_value;
    char* handle_type;
} PAIRED_HANDLE;

typedef struct PAIRED_HANDLES_TAG
{
    PAIRED_HANDLE* paired_handles;
    size_t paired_handle_count;
} PAIRED_HANDLES;

extern int umockcallpairs_track_create_paired_call(PAIRED_HANDLES* paired_handles, const void* handle, const char* handle_type, size_t handle_type_size);
extern int umockcallpairs_track_destroy_paired_call(PAIRED_HANDLES* paired_handles, const void* handle);

#ifdef __cplusplus
}
#endif

#endif /* UMOCKCALLPAIRS_H */