summaryrefslogtreecommitdiffstats
path: root/nserver/src/ncmd.h
Commit message (Collapse)AuthorAgeFilesLines
* nserver/ -> ./rsiddharth2020-04-171-41/+0
|
* nserver: Add license text to source files.rsiddharth2020-04-171-0/+5
|
* nserver: ncmd.h: Add NS_LOAD.rsiddharth2020-04-171-0/+1
| | | | | | | | | * nserver/src/ncmd.c (find_function): Add handling to find NS_LOAD. (call_function): Add handling for NS_LOAD. * nserver/src/ncmd.h (FUNCTIONS): Add NS_LOAD * nserver/tests/ncmd_tests.c (test_find_function) (test_call_function, test_process): Update tests to check the correctness of NS_LOAD.
* nserver: ncmd.h: Add NS_STORE.rsiddharth2020-04-171-0/+1
| | | | | | | | | * nserver/src/ncmd.c (find_function): Add handling to find NS_STORE. (call_function): Add handling for NS_STORE. * nserver/src/ncmd.h (FUNCTIONS): Add NS_STORE * nserver/tests/ncmd_tests.c (test_find_function) (test_call_function, test_process): Update tests to check the correctness of NS_STORE.
* nserver: Update check_cmd.rsiddharth2020-04-171-1/+1
| | | | | | * nserver/src/ncmd.c (check_cmd): Add argument err. * nserver/src/ncmd.h (check_cmd): Update function declaration. * nserver/tests/ncmd_tests.c (test_check_cmd): Update test.
* nserver: Flesh out process.rsiddharth2020-04-171-1/+1
| | | | | | | * nserver/src/ncmd.c (process): Initial version. * nserver/src/ncmd.h (process): Update declaration. * nserver/tests/ncmd_tests.c (test_process): Test for process. (all_tests): Add test_process.
* nserver: Update call_function.rsiddharth2020-04-171-1/+4
| | | | | | | | | * nserver/src/ncmd.c (call_function): Add arg out. Return integer. (process): Skeleton commented out. * nserver/src/ncmd.h (call_function): Update function declaration. (process): New function declaration. * nserver/tests/ncmd_tests.c (test_call_function): Update test.
* nserver: Add call_function.rsiddharth2020-04-171-0/+2
| | | | | | | | | * nserver/src/ncmd.c (call_function): New function definition. Initial version. * nserver/src/ncmd.h (call_function): New function declaration. * nserver/tests/ncmd_tests.c (test_call_function): Test for call_function. (all_tests): Add test_call_function.
* nserver: ncmd.h: Add find_function.rsiddharth2020-04-171-0/+12
| | | | | | | | | * nserver/src/ncmd.c (test_find_function): New function. (all_tests): Add test_find_function. * nserver/src/ncmd.h (FUNCTIONS): New enum. (find_function): New function declaration. * nserver/tests/ncmd_tests.c (find_function): New function definition.
* nserver: ncmd.h : Add cmd_parts.rsiddharth2020-04-171-0/+3
| | | | | | | * nserver/src/ncmd.c (cmd_parts): New function definition. * nserver/src/ncmd.h (cmd_parts): New function declaration. * nserver/tests/ncmd_tests.c (test_cmd_parts): Test cmd_parts. (all_tests): Add test_cmd_parts
* nserve: Add ncmd.hrsiddharth2020-04-171-0/+14
* nserver/src/nserve.c (sanitize, check_cmd): Move functions ... * nserver/src/ncmd.c (sanitize, check_cmd): ... here. * nserver/src/nserve.h (CMD_MIN_SIZE, CMD_MAX_SIZE): Move constants... * nserver/src/ncmd.h (CMD_MIN_SIZE, CMD_MAX_SIZE): ... here. (sanitize, check_cmd): New function declarations.