zathura/commands.c

66 lines
1.3 KiB
C
Raw Normal View History

2010-11-10 20:31:15 +01:00
/* See LICENSE file for license and copyright information */
#include "commands.h"
2011-03-12 11:32:24 +01:00
#include "zathura.h"
2011-04-29 00:28:19 +02:00
#include "print.h"
2010-11-10 20:31:15 +01:00
bool
cmd_bookmark_create(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
return true;
}
bool
cmd_bookmark_delete(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
return true;
}
bool
cmd_bookmark_open(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
return true;
}
bool
cmd_close(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
g_return_val_if_fail(session != NULL, false);
g_return_val_if_fail(session->global.data != NULL, false);
zathura_t* zathura = session->global.data;
g_return_val_if_fail(zathura->document != NULL, false);
document_close(zathura);
2011-03-12 11:32:24 +01:00
2010-11-10 20:31:15 +01:00
return true;
}
bool
cmd_info(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
return true;
}
bool
cmd_print(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
2011-04-29 00:28:19 +02:00
g_return_val_if_fail(session != NULL, false);
g_return_val_if_fail(session->global.data != NULL, false);
zathura_t* zathura = session->global.data;
if (zathura->document == NULL) {
girara_error("no document as been opened");
return false;
}
print((zathura_t*) session->global.data);;
2010-11-10 20:31:15 +01:00
return true;
}
bool
cmd_save(girara_session_t* session, girara_list_t* argument_list)
2010-11-10 20:31:15 +01:00
{
return true;
}