forked from external/yambar
tag: add as_int(), as_bool() and as_float()
This commit is contained in:
parent
44a2dbb201
commit
1712362da9
2 changed files with 109 additions and 0 deletions
3
tag.h
3
tag.h
|
@ -10,6 +10,9 @@ struct tag {
|
|||
void (*destroy)(struct tag *tag);
|
||||
const char *(*name)(const struct tag *tag);
|
||||
const char *(*as_string)(const struct tag *tag);
|
||||
long (*as_int)(const struct tag *tag);
|
||||
bool (*as_bool)(const struct tag *tag);
|
||||
double (*as_float)(const struct tag *tag);
|
||||
};
|
||||
|
||||
struct tag_set {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue