source: azure_iot_hub/trunk/azure_iothub/iothub_client/inc/internal/iothubtransport.h@ 389

Last change on this file since 389 was 389, checked in by coas-nagasima, 5 years ago

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.8 KB
Line 
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 IOTHUB_TRANSPORT_H
5#define IOTHUB_TRANSPORT_H
6
7#include "azure_c_shared_utility/lock.h"
8#include "azure_c_shared_utility/crt_abstractions.h"
9#include "iothub_transport_ll.h"
10#include "iothub_client_core.h"
11#include "internal/iothub_client_private.h"
12#include "internal/iothub_transport_ll_private.h"
13#include "internal/iothub_client_authorization.h"
14
15#ifndef IOTHUB_CLIENT_CORE_INSTANCE_TYPE
16typedef struct IOTHUB_CLIENT_CORE_INSTANCE_TAG* IOTHUB_CLIENT_CORE_HANDLE;
17#define IOTHUB_CLIENT_CORE_INSTANCE_TYPE
18#endif // IOTHUB_CLIENT_CORE_INSTANCE
19
20#ifdef __cplusplus
21extern "C"
22{
23#else
24#include <stdbool.h>
25#endif
26
27#include "azure_c_shared_utility/umock_c_prod.h"
28
29 /** @brief This struct captures IoTHub transport configuration. */
30 struct IOTHUBTRANSPORT_CONFIG_TAG
31 {
32 const IOTHUB_CLIENT_CONFIG* upperConfig;
33 PDLIST_ENTRY waitingToSend;
34 IOTHUB_AUTHORIZATION_HANDLE auth_module_handle;
35 const char* moduleId;
36 };
37
38 typedef void(*IOTHUB_CLIENT_MULTIPLEXED_DO_WORK)(void* iotHubClientInstance);
39
40 MOCKABLE_FUNCTION(, LOCK_HANDLE, IoTHubTransport_GetLock, TRANSPORT_HANDLE, transportHandle);
41 MOCKABLE_FUNCTION(, IOTHUB_CLIENT_RESULT, IoTHubTransport_StartWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_CORE_HANDLE, clientHandle, IOTHUB_CLIENT_MULTIPLEXED_DO_WORK, muxDoWork);
42 MOCKABLE_FUNCTION(, bool, IoTHubTransport_SignalEndWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_CORE_HANDLE, clientHandle);
43 MOCKABLE_FUNCTION(, void, IoTHubTransport_JoinWorkerThread, TRANSPORT_HANDLE, transportHandle, IOTHUB_CLIENT_CORE_HANDLE, clientHandle);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* IOTHUB_TRANSPORT_H */
Note: See TracBrowser for help on using the repository browser.