clients/lib/xmmsclient/medialib.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "xmmsclient/xmmsclient.h"
#include "xmmsclientpriv/xmmsclient.h"
#include "xmmsclientpriv/xmmsclient_ipc.h"
#include "xmmsc/xmmsc_idnumbers.h"
#include "xmmsc/xmmsc_stringport.h"

Go to the source code of this file.

Defines

#define GOODCHAR(a)

Functions

int xmmsc_entry_format (char *target, int len, const char *fmt, xmmsv_t *val)
 This function will make a pretty string about the information in the mediainfo hash supplied to it.
xmmsc_result_txmmsc_medialib_get_id (xmmsc_connection_t *conn, const char *url)
 Search for a entry (URL) in the medialib db and return its ID number.
xmmsc_result_txmmsc_medialib_get_id_encoded (xmmsc_connection_t *conn, const char *url)
 Search for a entry (URL) in the medialib db and return its ID number.
xmmsc_result_txmmsc_medialib_move_entry (xmmsc_connection_t *conn, int entry, const char *url)
 Change the url property of an entry in the media library.
xmmsc_result_txmmsc_medialib_remove_entry (xmmsc_connection_t *conn, int entry)
 Remove a entry from the medialib.
xmmsc_result_txmmsc_medialib_add_entry (xmmsc_connection_t *conn, const char *url)
 Add a URL to the medialib.
xmmsc_result_txmmsc_medialib_add_entry_args (xmmsc_connection_t *conn, const char *url, int numargs, const char **args)
 Add a URL with arguments to the medialib.
xmmsc_result_txmmsc_medialib_add_entry_full (xmmsc_connection_t *conn, const char *url, xmmsv_t *args)
 Add a URL with arguments to the medialib.
xmmsc_result_txmmsc_medialib_add_entry_encoded (xmmsc_connection_t *conn, const char *url)
 Add a URL to the medialib.
xmmsc_result_txmmsc_medialib_import_path (xmmsc_connection_t *conn, const char *path)
 Import a all files recursivly from the directory passed as argument.
xmmsc_result_txmmsc_medialib_import_path_encoded (xmmsc_connection_t *conn, const char *path)
 Import a all files recursivly from the directory passed as argument which must already be url encoded.
xmmsc_result_txmmsc_medialib_path_import (xmmsc_connection_t *conn, const char *path)
 Import a all files recursivly from the directory passed as argument.
xmmsc_result_txmmsc_medialib_path_import_encoded (xmmsc_connection_t *conn, const char *path)
 Import a all files recursivly from the directory passed as argument which must already be url encoded.
xmmsc_result_txmmsc_medialib_rehash (xmmsc_connection_t *conn, int id)
 Rehash the medialib, this will check data in the medialib still is the same as the data in files.
xmmsc_result_txmmsc_medialib_get_info (xmmsc_connection_t *c, int id)
 Retrieve information about a entry from the medialib.
xmmsc_result_txmmsc_broadcast_medialib_entry_added (xmmsc_connection_t *c)
 Request the medialib_entry_added broadcast.
xmmsc_result_txmmsc_broadcast_medialib_entry_changed (xmmsc_connection_t *c)
 Request the medialib_entry_changed broadcast.
xmmsc_result_txmmsc_medialib_entry_property_set_int (xmmsc_connection_t *c, int id, const char *key, int32_t value)
 Associate a int value with a medialib entry.
xmmsc_result_txmmsc_medialib_entry_property_set_int_with_source (xmmsc_connection_t *c, int id, const char *source, const char *key, int32_t value)
 Set a custom int field in the medialib associated with a entry, the same as xmmsc_medialib_entry_property_set_int but with specifing your own source.
xmmsc_result_txmmsc_medialib_entry_property_set_str (xmmsc_connection_t *c, int id, const char *key, const char *value)
 Associate a value with a medialib entry.
xmmsc_result_txmmsc_medialib_entry_property_set_str_with_source (xmmsc_connection_t *c, int id, const char *source, const char *key, const char *value)
 Set a custom field in the medialib associated with a entry, the same as xmmsc_medialib_entry_property_set_str but with specifing your own source.
xmmsc_result_txmmsc_medialib_entry_property_remove (xmmsc_connection_t *c, int id, const char *key)
 Remove a custom field in the medialib associated with an entry.
xmmsc_result_txmmsc_medialib_entry_property_remove_with_source (xmmsc_connection_t *c, int id, const char *source, const char *key)
 Remove a custom field in the medialib associated with an entry.
int _xmmsc_medialib_verify_url (const char *url)
char * _xmmsc_medialib_encode_url_old (const char *url, int narg, const char **args)
char * _xmmsc_medialib_encode_url (const char *url, xmmsv_t *args)

Define Documentation

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

Definition at line 481 of file medialib.c.

Referenced by _xmmsc_medialib_encode_url(), _xmmsc_medialib_encode_url_old(), and _xmmsc_medialib_verify_url().


Function Documentation

char* _xmmsc_medialib_encode_url ( const char *  url,
xmmsv_t *  args 
)
char* _xmmsc_medialib_encode_url_old ( const char *  url,
int  narg,
const char **  args 
)
int _xmmsc_medialib_verify_url ( const char *  url  ) 

Generated on Tue Feb 23 18:17:57 2010 for XmmsClient by  doxygen 1.6.1