X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fomnplay.h;h=2c8165b76f351a6a19eb85a48ad0b6144688cd63;hb=a4397d674b2f7ea33653ff1137193835c668c7de;hp=e36e8620c13943f24517102857b621d73f9b9e68;hpb=499664bbfa646b6280553d1dc2dfb71db8c2e4d9;p=omnplay diff --git a/src/omnplay.h b/src/omnplay.h index e36e862..2c8165b 100644 --- a/src/omnplay.h +++ b/src/omnplay.h @@ -86,6 +86,8 @@ typedef enum playlist_item_type #define MAX_PLAYLIST_ITEMS 1024 #define MAX_LIBRARY_ITEMS 10240 +#define PLAYLIST_ITEM_ERROR_LIB 1 +#define PLAYLIST_ITEM_ERROR_CUE 2 typedef struct playlist_item { @@ -97,6 +99,7 @@ typedef struct playlist_item playlist_item_type_t type; int omn_idx; int omn_offset; + int error; } playlist_item_t; #define MAX_PLAYERS 4 @@ -166,7 +169,11 @@ void omnplay_library_draw(omnplay_instance_t* app); typedef void (*omnplay_get_content_cb_proc)(omnplay_instance_t* app, playlist_item_t *items, void* data); int omnplay_get_content(omnplay_instance_t* app, playlist_item_t *items, int limit, omnplay_get_content_cb_proc proc, void* data); - +int omnplay_whois_list(omnplay_instance_t* app, playlist_item_t *items, int* plimit); +int omnplay_library_load_file(playlist_item_t* items, int *pcount, char* filename); +playlist_item_t* omnplay_library_find(omnplay_instance_t* app, char* id); +void omnplay_library_normalize_item(omnplay_instance_t* app, playlist_item_t* item); +playlist_item_t* omnplay_library_get_selected(omnplay_instance_t* app, int *count); #ifdef __cplusplus };