Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
df2d0414
Commit
df2d0414
authored
Feb 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database: add "pure" attributes
parent
ffc6e195
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
database.h
src/database.h
+5
-0
No files found.
src/database.h
View file @
df2d0414
...
...
@@ -47,6 +47,7 @@ db_finish(void);
* Returns the root directory object. Returns NULL if there is no
* configured music directory.
*/
G_GNUC_PURE
struct
directory
*
db_get_root
(
void
);
...
...
@@ -54,10 +55,12 @@ db_get_root(void);
* Caller must lock the #db_mutex.
*/
gcc_nonnull
(
1
)
G_GNUC_PURE
struct
directory
*
db_get_directory
(
const
char
*
name
);
gcc_nonnull
(
1
)
G_GNUC_PURE
struct
song
*
db_get_song
(
const
char
*
file
);
...
...
@@ -79,12 +82,14 @@ db_save(GError **error_r);
bool
db_load
(
GError
**
error
);
G_GNUC_PURE
time_t
db_get_mtime
(
void
);
/**
* Returns true if there is a valid database file on the disk.
*/
G_GNUC_PURE
static
inline
bool
db_exists
(
void
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment