Commit 12793b35 authored by Moritz Lipp's avatar Moritz Lipp

Update cmd_* definitions

The command definitions are now updated to fit to the updated
definitions of girara.
parent a98f69c3
......@@ -4,25 +4,25 @@
#include "zathura.h"
bool
cmd_bookmark_create(girara_session_t* session, int argc, char** argv)
cmd_bookmark_create(girara_session_t* session, girara_list_t* argument_list)
{
return true;
}
bool
cmd_bookmark_delete(girara_session_t* session, int argc, char** argv)
cmd_bookmark_delete(girara_session_t* session, girara_list_t* argument_list)
{
return true;
}
bool
cmd_bookmark_open(girara_session_t* session, int argc, char** argv)
cmd_bookmark_open(girara_session_t* session, girara_list_t* argument_list)
{
return true;
}
bool
cmd_close(girara_session_t* session, int argc, char** argv)
cmd_close(girara_session_t* session, girara_list_t* argument_list)
{
document_close();
......@@ -30,19 +30,19 @@ cmd_close(girara_session_t* session, int argc, char** argv)
}
bool
cmd_info(girara_session_t* session, int argc, char** argv)
cmd_info(girara_session_t* session, girara_list_t* argument_list)
{
return true;
}
bool
cmd_print(girara_session_t* session, int argc, char** argv)
cmd_print(girara_session_t* session, girara_list_t* argument_list)
{
return true;
}
bool
cmd_save(girara_session_t* session, int argc, char** argv)
cmd_save(girara_session_t* session, girara_list_t* argument_list)
{
return true;
}
......@@ -10,70 +10,63 @@
* Create a bookmark
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_bookmark_create(girara_session_t* session, int argc, char** argv);
bool cmd_bookmark_create(girara_session_t* session, girara_list_t* argument_list);
/**
* Delete a bookmark
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_bookmark_delete(girara_session_t* session, int argc, char** argv);
bool cmd_bookmark_delete(girara_session_t* session, girara_list_t* argument_list);
/**
* Open a bookmark
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_bookmark_open(girara_session_t* session, int argc, char** argv);
bool cmd_bookmark_open(girara_session_t* session, girara_list_t* argument_list);
/**
* Close zathura
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_close(girara_session_t* session, int argc, char** argv);
bool cmd_close(girara_session_t* session, girara_list_t* argument_list);
/**
* Display document information
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_info(girara_session_t* session, int argc, char** argv);
bool cmd_info(girara_session_t* session, girara_list_t* argument_list);
/**
* Print the current file
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_print(girara_session_t* session, int argc, char** argv);
bool cmd_print(girara_session_t* session, girara_list_t* argument_list);
/**
* Save the current file
*
* @param session The used girara session
* @param argc Number of arguments
* @param argv Value of the arguments
* @param argument_list List of passed arguments
* @return true if no error occured
*/
bool cmd_save(girara_session_t* session, int argc, char** argv);
bool cmd_save(girara_session_t* session, girara_list_t* argument_list);
#endif // COMMANDS_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment