Last change
on this file since 453 was 453, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
605 bytes
|
Rev | Line | |
---|
[453] | 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/platform.h"
|
---|
| 7 | #include "azure_c_shared_utility/xlogging.h"
|
---|
| 8 | #include "azure_macro_utils/macro_utils.h"
|
---|
| 9 | #include "iothub.h"
|
---|
| 10 |
|
---|
| 11 | int IoTHub_Init(void)
|
---|
| 12 | {
|
---|
| 13 | int result;
|
---|
| 14 | if (platform_init() != 0)
|
---|
| 15 | {
|
---|
| 16 | LogError("Platform initialization failed");
|
---|
| 17 | result = MU_FAILURE;
|
---|
| 18 | }
|
---|
| 19 | else
|
---|
| 20 | {
|
---|
| 21 | result = 0;
|
---|
| 22 | }
|
---|
| 23 | return result;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | void IoTHub_Deinit(void)
|
---|
| 27 | {
|
---|
| 28 | platform_deinit();
|
---|
| 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.