-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.h
More file actions
38 lines (24 loc) · 845 Bytes
/
cli.h
File metadata and controls
38 lines (24 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _CLI_H_
#define _CLI_H_
#include "main.h"
#include "map.h"
#include "workers.h"
#include "command_line_utils.h"
struct count_answer
{
int freq;
int path_length;
char path[0];
};
struct word *get_word_list(void);
void command_line_user(int to_worker_fd[], int to_handler_fd[], struct worker_info workers[]);
void worker_cli(int worker_fp, char *fifo_name2);
void free_all(void);
void add_word_to_list(struct word* cli_word);
struct word *free_word_list(struct word *incoming_struct);
void free_answer_list(struct answer_list_node *incoming_struct);
void free_text_list(struct text_info *incoming_struct);
void free_docfile_lines(struct docfile_line_info *array_lines);
void handler_search_max(struct text_info *answer_list_head);
void handler_search_min(struct text_info *answer_list_head);
#endif /* _CLI_H_ */