From bc79ded75a63ae79a1119f5ca578d41fca04b283 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Sun, 13 Apr 2014 05:01:55 -0700 Subject: 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 --- common/tags.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 common/tags.h (limited to 'common/tags.h') 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 -- cgit v1.2.3