46 lines
863 B
C++
46 lines
863 B
C++
/*
|
|
* OpenSubsonicPlayer
|
|
* Goldenkrew3000 2025
|
|
* License: GNU General Public License 3.0
|
|
*/
|
|
|
|
#ifndef _LOCALMUSICHANDLER_H
|
|
#define _LOCALMUSICHANDLER_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
void localMusicHandler_scan();
|
|
void localMusicHandler_scanDirectory(char* directory);
|
|
void localMusicHandler_scanFile(int idx);
|
|
void localMusicHandler_generateUid(int idx);
|
|
|
|
int localMusicHandler_initDatabase();
|
|
void localMusicHandler_moveSongsToDatabase(int idx);
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
char* uid;
|
|
char* title;
|
|
char* album;
|
|
char* artist;
|
|
char* path;
|
|
} localMusicHandler_songReq_songs_t;
|
|
|
|
typedef struct {
|
|
int songCount;
|
|
localMusicHandler_songReq_songs_t* songs;
|
|
} localMusicHandler_songReq_t;
|
|
|
|
localMusicHandler_songReq_t* localMusicHandler_test();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // __cplusplus
|
|
|
|
#endif // _LOCALMUSICHANDLER_H
|