OK..
This commit is contained in:
@@ -4,6 +4,23 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
int pid;
|
||||
char *output;
|
||||
char *log_path;
|
||||
bool is_running;
|
||||
int exit_status;
|
||||
bool timed_out;
|
||||
} r_process_result_t;
|
||||
|
||||
char *r_bash_execute(const char *command, bool interactive, int timeout_seconds);
|
||||
|
||||
/**
|
||||
* Advanced execution with async support.
|
||||
* Always returns a result object that must be freed.
|
||||
*/
|
||||
r_process_result_t *r_bash_execute_ext(const char *command, int timeout_seconds, bool async);
|
||||
|
||||
void r_process_result_free(r_process_result_t *res);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
#ifndef R_MARKDOWN_H
|
||||
#define R_MARKDOWN_H
|
||||
|
||||
/**
|
||||
* @brief Applies basic syntax highlighting to a string of code.
|
||||
* @param code The code string to highlight.
|
||||
*/
|
||||
void highlight_code(const char *code);
|
||||
|
||||
/**
|
||||
* @brief Parses a Markdown string and prints it to the console with ANSI color codes.
|
||||
* @param markdown The raw Markdown string to parse.
|
||||
*/
|
||||
void parse_markdown_to_ansi(const char *markdown);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user