zathura/zathura/marks.h

62 lines
1.5 KiB
C
Raw Normal View History

2012-04-21 04:59:58 +02:00
/* See LICENSE file for license and copyright information */
#ifndef MARKS_H
#define MARKS_H
#include <girara/types.h>
#include "zathura.h"
typedef struct zathura_mark_s zathura_mark_t;
/**
* Saves a mark
*
* @param session The used girara session
* @param argument The used argument
* @param event Girara event
* @param t Number of executions
* @return true if no error occured otherwise false
*/
bool sc_mark_add(girara_session_t* session, girara_argument_t* argument,
girara_event_t* event, unsigned int t);
/**
* Evaluates a mark
*
* @param session The used girara session
* @param argument The used argument
* @param event Girara event
* @param t Number of executions
* @return true if no error occured otherwise false
*/
bool sc_mark_evaluate(girara_session_t* session, girara_argument_t* argument,
girara_event_t* event, unsigned int t);
/**
* Mark current location within the web page
*
* @param session The girara session
* @param argument_list Argument list
* @return true if no error occured otherwise false
*/
bool cmd_marks_add(girara_session_t* session, girara_list_t* argument_list);
/**
* Delete the specified marks
*
* @param session The girara session
* @param argument_list Argument list
* @return true if no error occured otherwise false
*/
bool cmd_marks_delete(girara_session_t* session, girara_list_t* argument_list);
/**
* Free function vor marks
*
* @param data
*/
void mark_free(void* data);
#endif // MARKS_H