40#ifndef PQS_SERVER_INTERPRETER_H
41#define PQS_SERVER_INTERPRETER_H
65#define PQS_INTERPRETER_COMMAND_BUFFER_SIZE 128
73#define PQS_INTERPRETER_COMMAND_EXECUTE_SIZE 10240000
PQS_EXPORT_API size_t pqs_interpreter_command_execute(char *result, size_t reslen, const char *parameter)
Execute a command and return its output.
Definition interpreter.c:242
PQS_EXPORT_API size_t pqs_interpreter_file_to_stream(uint8_t *result, size_t reslen, const char *parameter)
Copy a file to a byte array.
Definition interpreter.c:117
PQS_EXPORT_API size_t pqs_interpreter_file_buffer_length(const char *parameter)
Get the length of a file.
Definition interpreter.c:96
PQS_EXPORT_API bool pqs_interpreter_initialize()
Initialize the command interpreter.
Definition interpreter.c:183
PQS_EXPORT_API bool pqs_interpreter_extract_paramaters(char *param1, char *param2, const char *message)
Extract two parameters from a string.
Definition interpreter.c:57
PQS_EXPORT_API bool pqs_interpreter_extract_paramater(char *param, const char *message)
Extract a parameter from a string.
Definition interpreter.c:34
PQS_EXPORT_API void pqs_interpreter_cleanup()
Clean up the command interpreter.
Definition interpreter.c:347
PQS_EXPORT_API size_t pqs_interpreter_stream_to_file(uint8_t *result, size_t reslen, const char *parameter, size_t parlen)
Copy a byte stream to a file.
Definition interpreter.c:149