Browse Source

Include cmd.h where needed and fix the errors.

Georgi Chorbadzhiyski 9 years ago
parent
commit
d4079fb1f6
2 changed files with 4 additions and 1 deletions
  1. 1
    0
      cmd.c
  2. 3
    1
      cmd.h

+ 1
- 0
cmd.c View File

15
 #include <string.h>
15
 #include <string.h>
16
 
16
 
17
 #include "data.h"
17
 #include "data.h"
18
+#include "cmd.h"
18
 #include "util.h"
19
 #include "util.h"
19
 
20
 
20
 /*
21
 /*

+ 3
- 1
cmd.h View File

13
 #ifndef CMD_H
13
 #ifndef CMD_H
14
 #define CMD_H
14
 #define CMD_H
15
 
15
 
16
+#include <stdbool.h>
17
+
16
 bool parse_command(struct videohub_data *d, char *cmd);
18
 bool parse_command(struct videohub_data *d, char *cmd);
17
-bool parse_text_buffer(struct videohub_data *data, char *cmd_buffer);
19
+int parse_text_buffer(struct videohub_data *data, char *cmd_buffer);
18
 
20
 
19
 #endif
21
 #endif

Loading…
Cancel
Save