MPD: db/DatabaseSong.hxx File Reference

MPD 0.20.15

Functions
DatabaseSong.hxx File Reference
`#include "Compiler.h"`
Include dependency graph for DatabaseSong.hxx:

Go to the source code of this file.

## Functions
DetachedSong | DatabaseDetachSong (const Storage &storage, const LightSong &song)
| "Detach" the Song object, i.e. More...
gcc_malloc gcc_nonnull_all DetachedSong * | DatabaseDetachSong (const Database &db, const Storage &storage, const char *uri)
| Look up a song in the database and convert it to a DetachedSong instance. More...

## Function Documentation

## ◆ DatabaseDetachSong() [1/2]

DetachedSong DatabaseDetachSong | ( | const Storage & | storage,
|  | const LightSong & | song
| ) |  |

"Detach" the Song object, i.e.

convert it to a DetachedSong instance.

## ◆ DatabaseDetachSong() [2/2]

gcc_malloc gcc_nonnull_all DetachedSong* DatabaseDetachSong | ( | const Database & | db,
|  | const Storage & | storage,
|  | const char * | uri
| ) |  |

Look up a song in the database and convert it to a DetachedSong instance.

The caller is responsible for freeing it.

Returns
  nullptr on error