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
e26bff9b
Commit
e26bff9b
authored
Nov 04, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag: added tag_is_empty()
parent
d7b2d93c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tag.h
src/tag.h
+10
-0
No files found.
src/tag.h
View file @
e26bff9b
...
...
@@ -90,6 +90,16 @@ static inline void tag_add_item(struct tag *tag, enum tag_type itemType,
struct
tag
*
tag_dup
(
const
struct
tag
*
tag
);
/**
* Returns true if the tag contains no items. This ignores the "time"
* attribute.
*/
static
inline
bool
tag_is_empty
(
const
struct
tag
*
tag
)
{
return
tag
->
numOfItems
==
0
;
}
/**
* Checks whether the tag contains one or more items with
* the specified type.
*/
...
...
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