2010-11-10 20:31:15 +01:00
|
|
|
/* See LICENSE file for license and copyright information */
|
|
|
|
|
2010-11-10 20:47:53 +01:00
|
|
|
#ifndef COMMANDS_H
|
|
|
|
#define COMMANDS_H
|
|
|
|
|
2010-11-10 20:31:15 +01:00
|
|
|
#include <stdbool.h>
|
2011-10-23 17:01:15 +02:00
|
|
|
#include <girara/types.h>
|
2010-11-10 20:31:15 +01:00
|
|
|
|
2011-02-08 07:51:53 +01:00
|
|
|
/**
|
|
|
|
* Create a bookmark
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_bookmark_create(girara_session_t* session, girara_list_t* argument_list);
|
2011-02-08 07:51:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Delete a bookmark
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_bookmark_delete(girara_session_t* session, girara_list_t* argument_list);
|
2011-02-08 07:51:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Open a bookmark
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_bookmark_open(girara_session_t* session, girara_list_t* argument_list);
|
2011-02-08 07:51:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Close zathura
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_close(girara_session_t* session, girara_list_t* argument_list);
|
2011-02-08 07:51:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Display document information
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_info(girara_session_t* session, girara_list_t* argument_list);
|
2011-09-01 13:15:27 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Display help
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
|
|
|
* @param argument_list List of passed arguments
|
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
|
|
|
bool cmd_help(girara_session_t* session, girara_list_t* argument_list);
|
2011-02-08 07:51:53 +01:00
|
|
|
|
2011-05-25 00:24:43 +02:00
|
|
|
/**
|
|
|
|
* Opens a document file
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
|
|
|
* @param argument_list List of passed arguments
|
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
|
|
|
bool cmd_open(girara_session_t* session, girara_list_t* argument_list);
|
|
|
|
|
2011-02-08 07:51:53 +01:00
|
|
|
/**
|
|
|
|
* Print the current file
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_print(girara_session_t* session, girara_list_t* argument_list);
|
2011-02-08 07:51:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Save the current file
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
2011-04-19 10:38:59 +02:00
|
|
|
* @param argument_list List of passed arguments
|
2011-02-08 07:51:53 +01:00
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-04-19 10:38:59 +02:00
|
|
|
bool cmd_save(girara_session_t* session, girara_list_t* argument_list);
|
2010-11-10 20:47:53 +01:00
|
|
|
|
2011-09-01 11:51:49 +02:00
|
|
|
/**
|
|
|
|
* Save the current file and overwrite existing files
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
|
|
|
* @param argument_list List of passed arguments
|
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
|
|
|
bool cmd_savef(girara_session_t* session, girara_list_t* argument_list);
|
|
|
|
|
2011-10-22 16:35:38 +02:00
|
|
|
/**
|
|
|
|
* Search the current file
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
|
|
|
* @param input The current input
|
|
|
|
* @param argument Passed argument
|
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
2011-12-09 14:48:16 +01:00
|
|
|
bool cmd_search(girara_session_t* session, const char* input, girara_argument_t* argument);
|
2011-09-01 11:51:49 +02:00
|
|
|
|
2012-01-13 18:54:09 +01:00
|
|
|
/**
|
|
|
|
* Save attachment to a file
|
|
|
|
*
|
|
|
|
* @param session The used girara session
|
|
|
|
* @param argument_list List of passed arguments
|
|
|
|
* @return true if no error occured
|
|
|
|
*/
|
|
|
|
bool cmd_export(girara_session_t* session, girara_list_t* argument_list);
|
|
|
|
|
2010-11-10 20:47:53 +01:00
|
|
|
#endif // COMMANDS_H
|