~martanne/vis

ref: bcde0a768c843049e3c2a4ca32be0ad91e533148 vis/sam.h -rw-r--r-- 506 bytes
bcde0a76Marc André Tanner ci: verify coverity scan script before using it 7 months ago
                                                                                
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
#ifndef SAM_H
#define SAM_H

#include "vis.h"

enum SamError {
	SAM_ERR_OK,
	SAM_ERR_MEMORY,
	SAM_ERR_ADDRESS,
	SAM_ERR_NO_ADDRESS,
	SAM_ERR_UNMATCHED_BRACE,
	SAM_ERR_REGEX,
	SAM_ERR_TEXT,
	SAM_ERR_SHELL,
	SAM_ERR_COMMAND,
	SAM_ERR_EXECUTE,
	SAM_ERR_NEWLINE,
	SAM_ERR_MARK,
	SAM_ERR_CONFLICT,
	SAM_ERR_WRITE_CONFLICT,
	SAM_ERR_LOOP_INVALID_CMD,
	SAM_ERR_GROUP_INVALID_CMD,
	SAM_ERR_COUNT,
};

bool sam_init(Vis*);
enum SamError sam_cmd(Vis*, const char *cmd);
const char *sam_error(enum SamError);

#endif