dict.c File Reference
#include <string.h>
#include "avstring.h"
#include "dict.h"
#include "internal.h"
#include "mem.h"
Include dependency graph for dict.c:

Go to the source code of this file.

Data Structures

struct  AVDictionary
 

Functions

int av_dict_count (const AVDictionary *m)
 Get number of entries in dictionary. More...
 
AVDictionaryEntryav_dict_get (AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
 Get a dictionary entry with matching key. More...
 
int av_dict_set (AVDictionary **pm, const char *key, const char *value, int flags)
 Set the given entry in *pm, overwriting an existing entry. More...
 
static int parse_key_value_pair (AVDictionary **pm, const char **buf, const char *key_val_sep, const char *pairs_sep, int flags)
 
int av_dict_parse_string (AVDictionary **pm, const char *str, const char *key_val_sep, const char *pairs_sep, int flags)
 Parse the key/value pairs list and add to a dictionary. More...
 
void av_dict_free (AVDictionary **pm)
 Free all the memory allocated for an AVDictionary struct and all keys and values. More...
 
void av_dict_copy (AVDictionary **dst, AVDictionary *src, int flags)
 Copy entries from one AVDictionary struct into another. More...
 

Function Documentation

static int parse_key_value_pair ( AVDictionary **  pm,
const char **  buf,
const char *  key_val_sep,
const char *  pairs_sep,
int  flags 
)
static

Definition at line 115 of file dict.c.

Referenced by av_dict_parse_string().