XmmsClient
Macros | Functions
xmmsv_util.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <xmmscpriv/xmmsv.h>
#include <xmmscpriv/xmmsc_util.h>

Macros

#define GOODCHAR(a)
 

Functions

xmmsv_txmmsv_propdict_to_dict (xmmsv_t *propdict, const char **src_prefs)
 Helper function to transform a key-source-value dict-of-dict xmmsv_t (formerly a propdict) to a regular key-value dict, given a list of source preference. More...
 
char * xmmsv_encode_url_full (const char *url, xmmsv_t *args)
 Encodes an url with arguments stored in dict args. More...
 
char * xmmsv_encode_url (const char *url)
 Encodes an url. More...
 
xmmsv_txmmsv_decode_url (const xmmsv_t *inv)
 Decode an URL-encoded string. More...
 
int xmmsv_dict_format (char *target, int len, const char *fmt, xmmsv_t *val)
 This function will make a pretty string about the information in xmmsv dict. More...
 
int xmmsv_utf8_validate (const char *str)
 Check if a string is valid UTF-8. More...
 

Macro Definition Documentation

#define GOODCHAR (   a)
Value:
((((a) >= 'a') && ((a) <= 'z')) || \
(((a) >= 'A') && ((a) <= 'Z')) || \
(((a) >= '0') && ((a) <= '9')) || \
((a) == ':') || \
((a) == '/') || \
((a) == '-') || \
((a) == '.') || \
((a) == '_'))

Referenced by xmmsv_encode_url_full().