girara
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
commands.h File Reference
#include "types.h"

Go to the source code of this file.

Functions

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)
 
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)
 

Function Documentation

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 
)

Adds an inputbar command

Parameters
sessionThe used girara session
commandThe name of the command
abbreviationThe abbreviation of the command
functionExecuted function
completionCompletion function
descriptionDescription of the command
Returns
TRUE No error occured
FALSE An error occured

Definition at line 528 of file commands.c.

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
sessionThe used girara session
identifierChar identifier
functionExecuted function
alwaysIf the function should executed on every change of the input (e.g.: incremental search)
argument_nArgument identifier
argument_dataArgument data
Returns
TRUE No error occured
FALSE An error occured

Definition at line 566 of file commands.c.