dict.h
Go to the documentation of this file.
1 /*
2  *
3  * This file is part of Libav.
4  *
5  * Libav 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  * Libav 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 Libav; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef AVUTIL_DICT_H
26 #define AVUTIL_DICT_H
27 
61 #define AV_DICT_MATCH_CASE 1
62 #define AV_DICT_IGNORE_SUFFIX 2
63 #define AV_DICT_DONT_STRDUP_KEY 4
65 #define AV_DICT_DONT_STRDUP_VAL 8
67 #define AV_DICT_DONT_OVERWRITE 16
68 #define AV_DICT_APPEND 32
71 typedef struct {
72  char *key;
73  char *value;
75 
76 typedef struct AVDictionary AVDictionary;
77 
87 av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags);
88 
99 int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags);
100 
109 void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags);
110 
115 void av_dict_free(AVDictionary **m);
116 
121 #endif // AVUTIL_DICT_H