diff options
Diffstat (limited to 'src/inline_cmds.h')
-rwxr-xr-x | src/inline_cmds.h | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/src/inline_cmds.h b/src/inline_cmds.h index 49bc5dd120..5cff93362a 100755 --- a/src/inline_cmds.h +++ b/src/inline_cmds.h @@ -38,37 +38,33 @@ * For ex: if --inline-commands-prefix=@, the inline commands will be * @resume@, @renegotiate@, etc... */ -typedef enum INLINE_COMMAND -{ INLINE_COMMAND_NONE, - INLINE_COMMAND_RESUME, - INLINE_COMMAND_RENEGOTIATE +typedef enum INLINE_COMMAND { INLINE_COMMAND_NONE, + INLINE_COMMAND_RESUME, + INLINE_COMMAND_RENEGOTIATE } inline_command_t; #define NUM_INLINE_COMMANDS 2 #define MAX_INLINE_COMMAND_BYTES 20 -typedef struct inline_cmds -{ - char *current_ptr; /* points to the start of the current buffer being processed */ - char *new_buffer_ptr; /* points to start or offset within the caller's buffer, - * and refers to bytes yet to be processed. */ - inline_command_t cmd_found; - int lf_found; - int bytes_to_flush; - ssize_t bytes_copied; - char inline_cmd_buffer[MAX_INLINE_COMMAND_BYTES]; +typedef struct inline_cmds { + char *current_ptr; /* points to the start of the current buffer being processed */ + char *new_buffer_ptr; /* points to start or offset within the caller's buffer, + * and refers to bytes yet to be processed. */ + inline_command_t cmd_found; + int lf_found; + int bytes_to_flush; + ssize_t bytes_copied; + char inline_cmd_buffer[MAX_INLINE_COMMAND_BYTES]; } inline_cmds_st; -struct inline_command_definitions -{ - int command; - char string[MAX_INLINE_COMMAND_BYTES]; +struct inline_command_definitions { + int command; + char string[MAX_INLINE_COMMAND_BYTES]; }; /* All inline commands will contain a trailing LF */ -struct inline_command_definitions inline_commands_def[] = -{ - {INLINE_COMMAND_RESUME, "^resume^\n"}, - {INLINE_COMMAND_RENEGOTIATE, "^renegotiate^\n"}, +struct inline_command_definitions inline_commands_def[] = { + {INLINE_COMMAND_RESUME, "^resume^\n"}, + {INLINE_COMMAND_RENEGOTIATE, "^renegotiate^\n"}, }; |