mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:05:59 +01:00
Some style updates.
This commit is contained in:
parent
6d9ca62c07
commit
0c8cc39964
1 changed files with 10 additions and 7 deletions
17
database.c
17
database.c
|
@ -21,7 +21,7 @@ void zathura_db_free(zathura_database_t* db)
|
||||||
bool zathura_db_add_bookmark(zathura_database_t* db, const char* file,
|
bool zathura_db_add_bookmark(zathura_database_t* db, const char* file,
|
||||||
zathura_bookmark_t* bookmark)
|
zathura_bookmark_t* bookmark)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file && bookmark, false);
|
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file != NULL && bookmark != NULL, false);
|
||||||
|
|
||||||
return ZATHURA_DATABASE_GET_INTERFACE(db)->add_bookmark(db, file, bookmark);
|
return ZATHURA_DATABASE_GET_INTERFACE(db)->add_bookmark(db, file, bookmark);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ bool zathura_db_add_bookmark(zathura_database_t* db, const char* file,
|
||||||
bool zathura_db_remove_bookmark(zathura_database_t* db, const char* file, const
|
bool zathura_db_remove_bookmark(zathura_database_t* db, const char* file, const
|
||||||
char* id)
|
char* id)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file && id, false);
|
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file != NULL && id != NULL, false);
|
||||||
|
|
||||||
return ZATHURA_DATABASE_GET_INTERFACE(db)->remove_bookmark(db, file, id);
|
return ZATHURA_DATABASE_GET_INTERFACE(db)->remove_bookmark(db, file, id);
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ bool zathura_db_remove_bookmark(zathura_database_t* db, const char* file, const
|
||||||
girara_list_t* zathura_db_load_bookmarks(zathura_database_t* db, const char*
|
girara_list_t* zathura_db_load_bookmarks(zathura_database_t* db, const char*
|
||||||
file)
|
file)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file, NULL);
|
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file != NULL, NULL);
|
||||||
|
|
||||||
return ZATHURA_DATABASE_GET_INTERFACE(db)->load_bookmarks(db, file);
|
return ZATHURA_DATABASE_GET_INTERFACE(db)->load_bookmarks(db, file);
|
||||||
}
|
}
|
||||||
|
@ -45,15 +45,18 @@ girara_list_t* zathura_db_load_bookmarks(zathura_database_t* db, const char*
|
||||||
bool zathura_db_set_fileinfo(zathura_database_t* db, const char* file, unsigned
|
bool zathura_db_set_fileinfo(zathura_database_t* db, const char* file, unsigned
|
||||||
int page, int offset, double scale, int rotation)
|
int page, int offset, double scale, int rotation)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file, false);
|
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file != NULL, false);
|
||||||
|
|
||||||
return ZATHURA_DATABASE_GET_INTERFACE(db)->set_fileinfo(db, file, page, offset, scale, rotation);
|
return ZATHURA_DATABASE_GET_INTERFACE(db)->set_fileinfo(db, file, page, offset,
|
||||||
|
scale, rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool zathura_db_get_fileinfo(zathura_database_t* db, const char* file, unsigned
|
bool zathura_db_get_fileinfo(zathura_database_t* db, const char* file, unsigned
|
||||||
int* page, int* offset, double* scale, int* rotation)
|
int* page, int* offset, double* scale, int* rotation)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file && page && offset && scale && rotation, false);
|
g_return_val_if_fail(ZATHURA_IS_DATABASE(db) && file != NULL && page != NULL &&
|
||||||
|
offset != NULL && scale != NULL && rotation != NULL, false);
|
||||||
|
|
||||||
return ZATHURA_DATABASE_GET_INTERFACE(db)->get_fileinfo(db, file, page, offset, scale, rotation);
|
return ZATHURA_DATABASE_GET_INTERFACE(db)->get_fileinfo(db, file, page, offset,
|
||||||
|
scale, rotation);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue