-
Notifications
You must be signed in to change notification settings - Fork 0
/
NOTES.txt
36 lines (27 loc) · 1.11 KB
/
NOTES.txt
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
If this project is made modular, it will be easier to work on now and take code
from if we ever do something similar in the future. For this reason I propose we
set the architecture as following.
-- phunt.c --
This has the main() function. Initializing all variables and running the event
loop is done here.
while()
-- action.c --
This will define a struct that represents an action, and there will be functions
in here that allow the building and handling of actions as well.
-- actionlist.c --
This will be able to parse configuration and hold a list of all future actions
to be taken. We will be easily able to extract an action from this struct/file
and then use the 'handling of actions' methods from action.c to take care of the
actions in this structure.
-- log.c -- DONE
This will hold all of the functions needed to gracefully print to the log.
Return Values:
0 SUCCESS!
-1 Memory Err
-2 Incorrect Parameter Passed
-3 Error that should never be reached, means that there is a program error
-4 IO Error
-5 Buffer provided was not large enough to fit content
-6 End Of File
-7 Error while parsing file
-8