Skip to content

Commit 53bce5b

Browse files
committed
Merge pull request #23 from Shao-Feng/native
Move the struct def in header file
2 parents 30a6804 + 9e82163 commit 53bce5b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/httpserver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ typedef struct HttpRequest {
3131
int responsecode; //response code
3232
} HR;
3333

34+
struct CmdResult {
35+
int exit_code;
36+
string stdout_str;
37+
};
38+
3439
class HttpServer {
3540
public:
3641
HttpServer();

source/httpserver.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ struct Timer_thread_info { /* Used as argument to thread */
3434
};
3535
Timer_thread_info timer_thread_info;
3636

37-
struct CmdResult {
38-
int exit_code;
39-
string stdout_str;
40-
};
41-
4237
void *win_timer_callback(void *para)
4338
{
4439
Timer_thread_info *tinfo = (Timer_thread_info *) para;

0 commit comments

Comments
 (0)