/usr/include/girara/commands.h is in libgirara-dev 0.2.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | /* See LICENSE file for license and copyright information */
#ifndef GIRARA_COMMANDS_H
#define GIRARA_COMMANDS_H
#include "types.h"
/**
* Adds an inputbar command
*
* @param session The used girara session
* @param command The name of the command
* @param abbreviation The abbreviation of the command
* @param function Executed function
* @param completion Completion function
* @param description Description of the command
* @return TRUE No error occurred
* @return FALSE An error occurred
*/
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 a special command
*
* @param session The used girara session
* @param identifier Char identifier
* @param function Executed function
* @param always If the function should executed on every change of the input
* (e.g.: incremental search)
* @param argument_n Argument identifier
* @param argument_data Argument data
* @return TRUE No error occurred
* @return FALSE An error occurred
*/
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);
#endif
|