#include "macros.h"
#include "types.h"
Go to the source code of this file.
|
bool | girara_inputbar_command_add (girara_session_t *session, const char *command, const char *abbreviation, girara_command_function_t function, girara_completion_function_t completion, const char *description) GIRARA_VISIBLE |
|
bool | girara_special_command_add (girara_session_t *session, char identifier, girara_inputbar_special_function_t function, bool always, int argument_n, void *argument_data) GIRARA_VISIBLE |
|
bool | girara_command_run (girara_session_t *session, const char *input) GIRARA_VISIBLE |
|
◆ girara_command_run()
bool girara_command_run |
( |
girara_session_t * |
session, |
|
|
const char * |
input |
|
) |
| |
Parse input and execute the command
- Parameters
-
session | The used girara session |
input | User input |
- Returns
- TRUE No error occurred
-
FALSE An error occured
◆ girara_inputbar_command_add()
Adds an inputbar command
- Parameters
-
session | The used girara session |
command | The name of the command |
abbreviation | The abbreviation of the command |
function | Executed function |
completion | Completion function |
description | Description of the command |
- Returns
- TRUE No error occurred
-
FALSE An error occurred
◆ girara_special_command_add()
bool girara_special_command_add |
( |
girara_session_t * |
session, |
|
|
char |
identifier, |
|
|
girara_inputbar_special_function_t |
function, |
|
|
bool |
always, |
|
|
int |
argument_n, |
|
|
void * |
argument_data |
|
) |
| |
Adds a special command
- Parameters
-
session | The used girara session |
identifier | Char identifier |
function | Executed function |
always | If the function should executed on every change of the input (e.g.: incremental search) |
argument_n | Argument identifier |
argument_data | Argument data |
- Returns
- TRUE No error occurred
-
FALSE An error occurred