src/db_plugin.h File Reference

This header declares the db_plugin class. More...

#include <glib.h>
#include <assert.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  db
struct  db_plugin

Functions

static G_GNUC_MALLOC struct dbdb_plugin_new (const struct db_plugin *plugin, const struct config_param *param, GError **error_r)
static void db_plugin_free (struct db *db)
static bool db_plugin_open (struct db *db, GError **error_r)
static void db_plugin_close (struct db *db)
static struct songdb_plugin_get_song (struct db *db, const char *uri, GError **error_r)
static bool db_plugin_visit (struct db *db, const struct db_selection *selection, const struct db_visitor *visitor, void *ctx, GError **error_r)

Detailed Description

This header declares the db_plugin class.

It describes a plugin API for databases of song metadata.

Definition in file db_plugin.h.


Function Documentation

static void db_plugin_close ( struct db db  )  [inline, static]

Definition at line 122 of file db_plugin.h.

static void db_plugin_free ( struct db db  )  [inline, static]

Definition at line 101 of file db_plugin.h.

static struct song* db_plugin_get_song ( struct db db,
const char *  uri,
GError **  error_r 
) [static, read]

Definition at line 132 of file db_plugin.h.

static G_GNUC_MALLOC struct db* db_plugin_new ( const struct db_plugin plugin,
const struct config_param param,
GError **  error_r 
) [static, read]

Definition at line 83 of file db_plugin.h.

static bool db_plugin_open ( struct db db,
GError **  error_r 
) [inline, static]

Definition at line 111 of file db_plugin.h.

static bool db_plugin_visit ( struct db db,
const struct db_selection selection,
const struct db_visitor visitor,
void *  ctx,
GError **  error_r 
) [inline, static]

Definition at line 143 of file db_plugin.h.


Generated on 9 Aug 2013 for MPD by  doxygen 1.6.1