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: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more
Revision 17:597443dc65a4, committed 2016-06-17
- Comitter:
- AzureIoTClient
- Date:
- Fri Jun 17 17:02:10 2016 -0700
- Parent:
- 16:a49121e2300b
- Child:
- 18:239d162e3607
- Commit message:
- 1.0.9
Changed in this revision
| iothubtransportamqp.c | Show annotated file Show diff for this revision Revisions of this file |
| iothubtransportamqp.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/iothubtransportamqp.c Tue Jun 07 10:48:38 2016 -0700
+++ b/iothubtransportamqp.c Fri Jun 17 17:02:10 2016 -0700
@@ -1735,7 +1735,24 @@
}
}
+static STRING_HANDLE IoTHubTransportAMQP_GetHostname(TRANSPORT_LL_HANDLE handle)
+{
+ STRING_HANDLE result;
+ /*Codes_SRS_IOTHUBTRANSPORTAMQP_02_001: [ If parameter handle is NULL then IoTHubTransportAMQP_GetHostname shall return NULL. ]*/
+ if (handle == NULL)
+ {
+ result = NULL;
+ }
+ else
+ {
+ /*Codes_SRS_IOTHUBTRANSPORTAMQP_02_002: [ Otherwise IoTHubTransportAMQP_GetHostname shall return a STRING_HANDLE for the hostname. ]*/
+ result = ((AMQP_TRANSPORT_INSTANCE*)(handle))->iotHubHostFqdn;
+ }
+ return result;
+}
+
static TRANSPORT_PROVIDER thisTransportProvider = {
+ IoTHubTransportAMQP_GetHostname,
IoTHubTransportAMQP_SetOption,
IoTHubTransportAMQP_Create,
IoTHubTransportAMQP_Destroy,
@@ -1747,7 +1764,7 @@
IoTHubTransportAMQP_GetSendStatus
};
-extern const void* AMQP_Protocol(void)
+extern const TRANSPORT_PROVIDER* AMQP_Protocol(void)
{
return &thisTransportProvider;
}
--- a/iothubtransportamqp.h Tue Jun 07 10:48:38 2016 -0700
+++ b/iothubtransportamqp.h Fri Jun 17 17:02:10 2016 -0700
@@ -4,7 +4,6 @@
#ifndef IOTHUBTRANSPORTAMQP_H
#define IOTHUBTRANSPORTAMQP_H
-#include "iothub_client_ll.h"
#include "iothub_transport_ll.h"
#ifdef __cplusplus
@@ -12,7 +11,7 @@
{
#endif
- extern const void* AMQP_Protocol(void);
+ extern const TRANSPORT_PROVIDER* AMQP_Protocol(void);
#ifdef __cplusplus
}
