diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-04-13 05:01:55 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-13 18:03:01 +0200 |
commit | bc79ded75a63ae79a1119f5ca578d41fca04b283 (patch) | |
tree | c6d04bd0d0b090373f154b351fb7fabfd9ab529f /common/tags.h | |
parent | 47972a0077892636fb922a3600d66779636b7ee7 (diff) | |
download | mpv-bc79ded75a63ae79a1119f5ca578d41fca04b283.tar.bz2 mpv-bc79ded75a63ae79a1119f5ca578d41fca04b283.tar.xz |
mp_tags: move generic mp_tags stuff into its own .c/.h files in common/
rename add_metadata to the more genera/descriptive mp_tags_copy_items_from_av_dictionary
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'common/tags.h')
-rw-r--r-- | common/tags.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/tags.h b/common/tags.h new file mode 100644 index 0000000000..3bc0e6984b --- /dev/null +++ b/common/tags.h @@ -0,0 +1,21 @@ +#ifndef MP_TAGS_H +#define MP_TAGS_H + +#include "bstr/bstr.h" + +struct mp_tags { + char **keys; + char **values; + int num_keys; +}; + +void mp_tags_set_str(struct mp_tags *tags, const char *key, const char *value); +void mp_tags_set_bstr(struct mp_tags *tags, bstr key, bstr value); +char *mp_tags_get_str(struct mp_tags *tags, const char *key); +char *mp_tags_get_bstr(struct mp_tags *tags, bstr key); +void mp_tags_clear(struct mp_tags *tags); +struct AVDictionary; +void mp_tags_copy_from_av_dictionary(struct mp_tags *tags, + struct AVDictionary *av_dict); + +#endif |