Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
azure_uamqp_c/message_receiver.h@10:19ce00951771, 2016-09-09 (annotated)
- Committer:
- AzureIoTClient
- Date:
- Fri Sep 09 13:37:56 2016 -0700
- Revision:
- 10:19ce00951771
- Parent:
- 0:6ae2f7bca550
- Child:
- 20:206846c14c80
1.0.10
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Azure.IoT Build | 0:6ae2f7bca550 | 1 | // Copyright (c) Microsoft. All rights reserved. |
| Azure.IoT Build | 0:6ae2f7bca550 | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| Azure.IoT Build | 0:6ae2f7bca550 | 3 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 4 | #ifndef MESSAGE_RECEIVER_H |
| Azure.IoT Build | 0:6ae2f7bca550 | 5 | #define MESSAGE_RECEIVER_H |
| Azure.IoT Build | 0:6ae2f7bca550 | 6 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 7 | #include "azure_uamqp_c/link.h" |
| Azure.IoT Build | 0:6ae2f7bca550 | 8 | #include "azure_uamqp_c/message.h" |
| Azure.IoT Build | 0:6ae2f7bca550 | 9 | #include "azure_uamqp_c/amqp_definitions.h" |
| Azure.IoT Build | 0:6ae2f7bca550 | 10 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 11 | #ifdef __cplusplus |
| Azure.IoT Build | 0:6ae2f7bca550 | 12 | extern "C" { |
| Azure.IoT Build | 0:6ae2f7bca550 | 13 | #endif /* __cplusplus */ |
| Azure.IoT Build | 0:6ae2f7bca550 | 14 | |
| AzureIoTClient | 10:19ce00951771 | 15 | #include "azure_c_shared_utility/umock_c_prod.h" |
| AzureIoTClient | 10:19ce00951771 | 16 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 17 | typedef enum MESSAGE_RECEIVER_STATE_TAG |
| Azure.IoT Build | 0:6ae2f7bca550 | 18 | { |
| Azure.IoT Build | 0:6ae2f7bca550 | 19 | MESSAGE_RECEIVER_STATE_IDLE, |
| Azure.IoT Build | 0:6ae2f7bca550 | 20 | MESSAGE_RECEIVER_STATE_OPENING, |
| Azure.IoT Build | 0:6ae2f7bca550 | 21 | MESSAGE_RECEIVER_STATE_OPEN, |
| Azure.IoT Build | 0:6ae2f7bca550 | 22 | MESSAGE_RECEIVER_STATE_CLOSING, |
| Azure.IoT Build | 0:6ae2f7bca550 | 23 | MESSAGE_RECEIVER_STATE_ERROR |
| Azure.IoT Build | 0:6ae2f7bca550 | 24 | } MESSAGE_RECEIVER_STATE; |
| Azure.IoT Build | 0:6ae2f7bca550 | 25 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 26 | typedef struct MESSAGE_RECEIVER_INSTANCE_TAG* MESSAGE_RECEIVER_HANDLE; |
| Azure.IoT Build | 0:6ae2f7bca550 | 27 | typedef AMQP_VALUE (*ON_MESSAGE_RECEIVED)(const void* context, MESSAGE_HANDLE message); |
| Azure.IoT Build | 0:6ae2f7bca550 | 28 | typedef void(*ON_MESSAGE_RECEIVER_STATE_CHANGED)(const void* context, MESSAGE_RECEIVER_STATE new_state, MESSAGE_RECEIVER_STATE previous_state); |
| Azure.IoT Build | 0:6ae2f7bca550 | 29 | |
| AzureIoTClient | 10:19ce00951771 | 30 | MOCKABLE_FUNCTION(, MESSAGE_RECEIVER_HANDLE, messagereceiver_create, LINK_HANDLE, link, ON_MESSAGE_RECEIVER_STATE_CHANGED, on_message_receiver_state_changed, void*, context); |
| AzureIoTClient | 10:19ce00951771 | 31 | MOCKABLE_FUNCTION(, void, messagereceiver_destroy, MESSAGE_RECEIVER_HANDLE, message_receiver); |
| AzureIoTClient | 10:19ce00951771 | 32 | MOCKABLE_FUNCTION(, int, messagereceiver_open, MESSAGE_RECEIVER_HANDLE, message_receiver, ON_MESSAGE_RECEIVED, on_message_received, const void*, callback_context); |
| AzureIoTClient | 10:19ce00951771 | 33 | MOCKABLE_FUNCTION(, int, messagereceiver_close, MESSAGE_RECEIVER_HANDLE, message_receiver); |
| Azure.IoT Build | 0:6ae2f7bca550 | 34 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 35 | #ifdef __cplusplus |
| Azure.IoT Build | 0:6ae2f7bca550 | 36 | } |
| Azure.IoT Build | 0:6ae2f7bca550 | 37 | #endif /* __cplusplus */ |
| Azure.IoT Build | 0:6ae2f7bca550 | 38 | |
| Azure.IoT Build | 0:6ae2f7bca550 | 39 | #endif /* MESSAGE_RECEIVER_H */ |
