httpdirfs/src/sonic.h

33 lines
668 B
C
Raw Normal View History

#ifndef SONIC_H
#define SONIC_H
/**
* \file sonic.h
* \brief Sonic related function
*/
#include "link.h"
/**
* \brief Initialise Sonic configuration.
*/
void sonic_config_init(const char *server, const char *username,
const char *password);
/**
2019-10-27 12:08:23 +01:00
* \brief Create a new Sonic LinkTable in index mode
*/
2019-10-25 19:52:53 +02:00
LinkTable *sonic_LinkTable_new_index_mode(const int id);
/**
2019-10-27 12:08:23 +01:00
* \brief Create a new Sonic LinkTable in ID3 mode
* \details In this mode, the filesystem effectively has 4 levels of
* directories, which are:
* 1. Root
* 2. Index
* 3. Artists
* 4. Album
2019-10-25 19:52:53 +02:00
*/
2019-10-27 12:08:23 +01:00
LinkTable *sonic_LinkTable_new_id3_mode(char *sonic_id_str);
2019-10-25 19:52:53 +02:00
#endif