Last change
on this file since 392 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-csrc;charset=UTF-8
|
File size:
987 bytes
|
Rev | Line | |
---|
[388] | 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 | #include <stdlib.h>
|
---|
| 5 |
|
---|
| 6 | #include "azure_c_shared_utility/xlogging.h"
|
---|
| 7 | #include "internal/iothub_transport_ll_private.h"
|
---|
| 8 |
|
---|
| 9 | int IoTHub_Transport_ValidateCallbacks(const TRANSPORT_CALLBACKS_INFO* transport_cb)
|
---|
| 10 | {
|
---|
| 11 | int result;
|
---|
| 12 | if (
|
---|
| 13 | transport_cb == NULL ||
|
---|
| 14 | transport_cb->connection_status_cb == NULL ||
|
---|
| 15 | transport_cb->msg_input_cb == NULL ||
|
---|
| 16 | transport_cb->msg_cb == NULL ||
|
---|
| 17 | transport_cb->send_complete_cb == NULL ||
|
---|
| 18 | transport_cb->prod_info_cb == NULL ||
|
---|
| 19 | transport_cb->twin_rpt_state_complete_cb == NULL ||
|
---|
| 20 | transport_cb->twin_retrieve_prop_complete_cb == NULL ||
|
---|
| 21 | transport_cb->method_complete_cb == NULL
|
---|
| 22 | )
|
---|
| 23 | {
|
---|
| 24 | LogError("Failure callback function NULL");
|
---|
| 25 | result = MU_FAILURE;
|
---|
| 26 | }
|
---|
| 27 | else
|
---|
| 28 | {
|
---|
| 29 | result = 0;
|
---|
| 30 | }
|
---|
| 31 | return result;
|
---|
| 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.