mirror of
https://github.com/Goldenkrew3000/OSSP_OpenSource.git
synced 2025-12-20 00:34:44 +10:00
Adding base source
This commit is contained in:
52
src/libopensubsonic/endpoint_getAlbum.h
Normal file
52
src/libopensubsonic/endpoint_getAlbum.h
Normal file
@@ -0,0 +1,52 @@
|
||||
#ifndef _ENDPOINT_GETALBUM_H
|
||||
#define _ENDPOINT_GETALBUM_H
|
||||
|
||||
typedef struct {
|
||||
char* id;
|
||||
char* parent;
|
||||
char* title;
|
||||
// 'isDir', 'isVideo', 'type' excluded
|
||||
char* albumId;
|
||||
char* album;
|
||||
char* artistId;
|
||||
char* artist;
|
||||
char* coverArt;
|
||||
long duration;
|
||||
int bitRate;
|
||||
int bitDepth;
|
||||
long samplingRate;
|
||||
int channelCount;
|
||||
int track; // Use songCount index instead
|
||||
int year;
|
||||
char* genre;
|
||||
long size;
|
||||
int discNumber;
|
||||
// 'suffix', 'contentType', 'path' excluded
|
||||
} opensubsonic_getAlbum_song_struct;
|
||||
|
||||
typedef struct {
|
||||
char* status;
|
||||
int errorCode;
|
||||
char* errorMessage;
|
||||
char* id;
|
||||
char* parent;
|
||||
char* album;
|
||||
char* title;
|
||||
char* name;
|
||||
// 'isDir' excluded
|
||||
char* coverArt;
|
||||
char* created;
|
||||
long duration;
|
||||
int playCount;
|
||||
char* artistId;
|
||||
char* artist;
|
||||
int year;
|
||||
char* genre;
|
||||
int songCount; // Counted, not retrieved from JSON
|
||||
opensubsonic_getAlbum_song_struct* songs;
|
||||
} opensubsonic_getAlbum_struct;
|
||||
|
||||
int opensubsonic_getAlbum_parse(char* data, opensubsonic_getAlbum_struct** getAlbumStruct);
|
||||
void opensubsonic_getAlbum_struct_free(opensubsonic_getAlbum_struct** getAlbumStruct);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user