World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
dict.h
См. документацию.
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 */
av_dict_count
int av_dict_count(const AVDictionary *m)
AVDictionaryEntry
Definition: dict.h:81
int64_t
__int64 int64_t
Definition: alext.h:31
av_dict_get
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
AVDictionaryEntry::value
char * value
Definition: dict.h:83
buffer
EGLContext EGLenum EGLClientBuffer buffer
Definition: SDL_egl.h:952
src
GLenum src
Definition: SDL_opengl_glext.h:1740
AVDictionaryEntry::key
char * key
Definition: dict.h:82
AVDictionaryEntry
struct AVDictionaryEntry AVDictionaryEntry
value
EGLSyncKHR EGLint EGLint * value
Definition: SDL_egl.h:899
dst
GLenum GLenum dst
Definition: SDL_opengl_glext.h:1740
av_dict_free
void av_dict_free(AVDictionary **m)
flags
EGLSyncKHR EGLint flags
Definition: SDL_egl.h:898
m
const GLfloat * m
Definition: SDL_opengl_glext.h:6095
AVDictionary
struct AVDictionary AVDictionary
Definition: dict.h:86
av_dict_parse_string
int av_dict_parse_string(AVDictionary **pm, const char *str, const char *key_val_sep, const char *pairs_sep, int flags)
av_dict_set_int
int av_dict_set_int(AVDictionary **pm, const char *key, int64_t value, int flags)
av_dict_set
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
av_dict_get_string
int av_dict_get_string(const AVDictionary *m, char **buffer, const char key_val_sep, const char pairs_sep)
av_dict_copy
int av_dict_copy(AVDictionary **dst, const AVDictionary *src, int flags)