00001 /* 00002 * 00003 * This file is part of FFmpeg. 00004 * 00005 * FFmpeg is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * FFmpeg is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with FFmpeg; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00031 #ifndef AVUTIL_DICT_H 00032 #define AVUTIL_DICT_H 00033 00067 #define AV_DICT_MATCH_CASE 1 00068 #define AV_DICT_IGNORE_SUFFIX 2 00069 #define AV_DICT_DONT_STRDUP_KEY 4 00071 #define AV_DICT_DONT_STRDUP_VAL 8 00073 #define AV_DICT_DONT_OVERWRITE 16 00074 #define AV_DICT_APPEND 32 00077 typedef struct { 00078 char *key; 00079 char *value; 00080 } AVDictionaryEntry; 00081 00082 typedef struct AVDictionary AVDictionary; 00083 00092 AVDictionaryEntry * 00093 av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags); 00094 00105 int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags); 00106 00115 void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags); 00116 00121 void av_dict_free(AVDictionary **m); 00122 00127 #endif // AVUTIL_DICT_H