Skip to content

Commit b3cbb07

Browse files
Azim KhanAzim Khan
authored andcommitted
Merge greentea-client/test_env_c.h into greentea-client/test_env.h
1 parent 82d948d commit b3cbb07

File tree

2 files changed

+20
-37
lines changed

2 files changed

+20
-37
lines changed

features/frameworks/greentea-client/greentea-client/test_env.h

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@
2121
#ifndef GREENTEA_CLIENT_TEST_ENV_H_
2222
#define GREENTEA_CLIENT_TEST_ENV_H_
2323

24+
#ifdef __cplusplus
2425
#ifdef YOTTA_GREENTEA_CLIENT_VERSION_STRING
2526
#define MBED_GREENTEA_CLIENT_VERSION_STRING YOTTA_GREENTEA_CLIENT_VERSION_STRING
2627
#else
2728
#define MBED_GREENTEA_CLIENT_VERSION_STRING "1.3.0"
2829
#endif
2930

3031
#include <stdio.h>
31-
extern "C" {
32-
#include "test_env_c.h"
33-
}
3432

3533
/**
3634
* Auxilary macros
@@ -106,6 +104,25 @@ void greentea_notify_coverage_start(const char *path);
106104
void greentea_notify_coverage_end();
107105
#endif // MBED_CFG_DEBUG_OPTIONS_COVERAGE
108106

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+
109126
#endif // GREENTEA_CLIENT_TEST_ENV_H_
110127

111128
/** @}*/

features/frameworks/greentea-client/greentea-client/test_env_c.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)