Miam-Player  0.8.0
A nice music player
dict.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
30 #ifndef AVUTIL_DICT_H
31 #define AVUTIL_DICT_H
32 
33 #include <stdint.h>
34 
35 #include "version.h"
36 
69 #define AV_DICT_MATCH_CASE 1
70 #define AV_DICT_IGNORE_SUFFIX 2
72 #define AV_DICT_DONT_STRDUP_KEY 4
74 #define AV_DICT_DONT_STRDUP_VAL 8
76 #define AV_DICT_DONT_OVERWRITE 16
77 #define AV_DICT_APPEND 32
79 #define AV_DICT_MULTIKEY 64
81 typedef struct AVDictionaryEntry {
82  char *key;
83  char *value;
85 
86 typedef struct AVDictionary AVDictionary;
87 
103 AVDictionaryEntry *av_dict_get(const AVDictionary *m, const char *key,
104  const AVDictionaryEntry *prev, int flags);
105 
112 int av_dict_count(const AVDictionary *m);
113 
130 int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags);
131 
138 int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value, int flags);
139 
156 int av_dict_parse_string(AVDictionary **pm, const char *str,
157  const char *key_val_sep, const char *pairs_sep,
158  int flags);
159 
170 int av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags);
171 
176 void av_dict_free(AVDictionary **m);
177 
193 int av_dict_get_string(const AVDictionary *m, char **buffer,
194  const char key_val_sep, const char pairs_sep);
195 
200 #endif /* AVUTIL_DICT_H */
int av_dict_count(const AVDictionary *m)
int av_dict_get_string(const AVDictionary *m, char **buffer, const char key_val_sep, const char pairs_sep)
int av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags)
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
struct AVDictionary AVDictionary
Definition: dict.h:90
void av_dict_free(AVDictionary **m)
struct AVDictionaryEntry AVDictionaryEntry
int av_dict_parse_string(AVDictionary **pm, const char *str, const char *key_val_sep, const char *pairs_sep, int flags)
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value, int flags)
Definition: dict.h:85