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 00025 #ifndef AVUTIL_DICT_H 00026 #define AVUTIL_DICT_H 00027 00028 #define AV_DICT_MATCH_CASE 1 00029 #define AV_DICT_IGNORE_SUFFIX 2 00030 #define AV_DICT_DONT_STRDUP_KEY 4 00031 #define AV_DICT_DONT_STRDUP_VAL 8 00032 #define AV_DICT_DONT_OVERWRITE 16 00033 #define AV_DICT_APPEND 32 00036 typedef struct { 00037 char *key; 00038 char *value; 00039 } AVDictionaryEntry; 00040 00041 typedef struct AVDictionary AVDictionary; 00042 00051 AVDictionaryEntry * 00052 av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags); 00053 00064 int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags); 00065 00074 void av_dict_copy(AVDictionary **dst, AVDictionary *src, int flags); 00075 00079 void av_dict_free(AVDictionary **m); 00080 00081 #endif // AVUTIL_DICT_H