Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
34
Src/Plugins/Library/ml_local/mldbApi.h
Normal file
34
Src/Plugins/Library/ml_local/mldbApi.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#include "api_mldb.h"
|
||||
|
||||
class MLDBAPI : public api_mldb
|
||||
{
|
||||
public:
|
||||
itemRecordW *GetFile(const wchar_t *filename);
|
||||
itemRecordW *GetFileIf(const wchar_t *filename, const wchar_t *query);
|
||||
itemRecordListW *GetAlbum(const wchar_t *albumname, const wchar_t *albumartist);
|
||||
itemRecordListW *Query(const wchar_t *query);
|
||||
itemRecordListW *QueryLimit(const wchar_t *query, unsigned int limit);
|
||||
|
||||
void SetField(const wchar_t *filename, const char *field, const wchar_t *value);
|
||||
void SetFieldInteger(const wchar_t *filename, const char *field, int value);
|
||||
void SetFieldInt128(const wchar_t *filename, const char *field, uint8_t value[16]);
|
||||
void Sync();
|
||||
|
||||
int AddFile(const wchar_t *filename);
|
||||
|
||||
void FreeRecord(itemRecordW *record);
|
||||
void FreeRecordList(itemRecordListW *recordList);
|
||||
int RemoveFile(const wchar_t *filename);
|
||||
|
||||
/* wrappers around ndestring */
|
||||
void RetainString(wchar_t *str);
|
||||
void ReleaseString(wchar_t *str);
|
||||
wchar_t *DuplicateString(const wchar_t *str);
|
||||
|
||||
int GetMaxInteger(const char *field, int *max);
|
||||
protected:
|
||||
RECVS_DISPATCH;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue