FFmpeg  1.2.12
dict.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is part of FFmpeg.
4  *
5  * FFmpeg is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * FFmpeg is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with FFmpeg; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
31 #ifndef AVUTIL_DICT_H
32 #define AVUTIL_DICT_H
33 
67 #define AV_DICT_MATCH_CASE 1
68 #define AV_DICT_IGNORE_SUFFIX 2
69 #define AV_DICT_DONT_STRDUP_KEY 4
71 #define AV_DICT_DONT_STRDUP_VAL 8
73 #define AV_DICT_DONT_OVERWRITE 16
74 #define AV_DICT_APPEND 32
77 typedef struct AVDictionaryEntry {
78  char *key;
79  char *value;
81 
82 typedef struct AVDictionary AVDictionary;
83 
93 av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags);
94 
101 int av_dict_count(const AVDictionary *m);
102 
113 int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags);
114 
128 int av_dict_parse_string(AVDictionary **pm, const char *str,
129  const char *key_val_sep, const char *pairs_sep,
130  int flags);
131 
140 void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags);
141 
146 void av_dict_free(AVDictionary **m);
147 
152 #endif /* AVUTIL_DICT_H */