File tree Expand file tree Collapse file tree 2 files changed +20
-37
lines changed
features/frameworks/greentea-client/greentea-client Expand file tree Collapse file tree 2 files changed +20
-37
lines changed Original file line number Diff line number Diff line change 21
21
#ifndef GREENTEA_CLIENT_TEST_ENV_H_
22
22
#define GREENTEA_CLIENT_TEST_ENV_H_
23
23
24
+ #ifdef __cplusplus
24
25
#ifdef YOTTA_GREENTEA_CLIENT_VERSION_STRING
25
26
#define MBED_GREENTEA_CLIENT_VERSION_STRING YOTTA_GREENTEA_CLIENT_VERSION_STRING
26
27
#else
27
28
#define MBED_GREENTEA_CLIENT_VERSION_STRING "1.3.0"
28
29
#endif
29
30
30
31
#include <stdio.h>
31
- extern "C" {
32
- #include "test_env_c.h"
33
- }
34
32
35
33
/**
36
34
* Auxilary macros
@@ -106,6 +104,25 @@ void greentea_notify_coverage_start(const char *path);
106
104
void greentea_notify_coverage_end ();
107
105
#endif // MBED_CFG_DEBUG_OPTIONS_COVERAGE
108
106
107
+ #endif // __cplusplus
108
+
109
+ #ifdef __cplusplus
110
+ extern "C" {
111
+ #endif
112
+
113
+ /**
114
+ * Greentea-client C API
115
+ */
116
+ void GREENTEA_SETUP (const int timeout , const char * host_test );
117
+ void greentea_send_kv (const char * key , const char * val );
118
+ int greentea_parse_kv (char * key , char * val ,
119
+ const int key_len , const int val_len );
120
+ int greentea_getc ();
121
+
122
+ #ifdef __cplusplus
123
+ }
124
+ #endif
125
+
109
126
#endif // GREENTEA_CLIENT_TEST_ENV_H_
110
127
111
128
/** @}*/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments