mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 17:03:47 +01:00
62 lines
1.5 KiB
C
62 lines
1.5 KiB
C
|
/* 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
|