X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fomnplay.h;h=d2444b9a7333562c03e9a607df93a478c1fcb5a2;hb=c7be31ae10a2a399cb21593d84703f8278472d72;hp=9b2a3e294979dccbb600a4470f06f7738516ac83;hpb=85f2c09e98e0f0a658ce162ada362274b90a72d9;p=melted_gui diff --git a/src/omnplay.h b/src/omnplay.h index 9b2a3e2..d2444b9 100644 --- a/src/omnplay.h +++ b/src/omnplay.h @@ -51,35 +51,36 @@ typedef enum control_buttons BUTTON_LAST } control_buttons_t; -#define OMNPLAY_PLAYLIST_BLOCK_BEGIN (1 << 0) // 1 -#define OMNPLAY_PLAYLIST_BLOCK_BODY 0 // 0 -#define OMNPLAY_PLAYLIST_BLOCK_END (1 << 1) // 2 -#define OMNPLAY_PLAYLIST_BLOCK_LOOP (1 << 2) // 4 +#define OMNPLAY_PLAYLIST_BLOCK_BEGIN 1 +#define OMNPLAY_PLAYLIST_BLOCK_BODY 0 +#define OMNPLAY_PLAYLIST_BLOCK_END 2 +#define OMNPLAY_PLAYLIST_BLOCK_LOOP 4 typedef enum playlist_item_type { + // 1 OMNPLAY_PLAYLIST_ITEM_BLOCK_BEGIN = OMNPLAY_PLAYLIST_BLOCK_BEGIN, - + // 0 OMNPLAY_PLAYLIST_ITEM_BLOCK_BODY = OMNPLAY_PLAYLIST_BLOCK_BODY, - + // 2 OMNPLAY_PLAYLIST_ITEM_BLOCK_END = OMNPLAY_PLAYLIST_BLOCK_END, - - OMNPLAY_PLAYLIST_ITEM_BLOCK_SINGLE = OMNPLAY_PLAYLIST_BLOCK_END | \ - OMNPLAY_PLAYLIST_BLOCK_BODY | \ + // 3 + OMNPLAY_PLAYLIST_ITEM_BLOCK_SINGLE = OMNPLAY_PLAYLIST_BLOCK_BEGIN | + OMNPLAY_PLAYLIST_BLOCK_BODY | OMNPLAY_PLAYLIST_BLOCK_END, - - OMNPLAY_PLAYLIST_ITEM_LOOP_BEGIN = OMNPLAY_PLAYLIST_BLOCK_BEGIN | \ + // 5 + OMNPLAY_PLAYLIST_ITEM_LOOP_BEGIN = OMNPLAY_PLAYLIST_BLOCK_BEGIN | OMNPLAY_PLAYLIST_BLOCK_LOOP, - - OMNPLAY_PLAYLIST_ITEM_LOOP_BODY = OMNPLAY_PLAYLIST_BLOCK_BODY | \ + // 4 + OMNPLAY_PLAYLIST_ITEM_LOOP_BODY = OMNPLAY_PLAYLIST_BLOCK_BODY | OMNPLAY_PLAYLIST_BLOCK_LOOP, - - OMNPLAY_PLAYLIST_ITEM_LOOP_END = OMNPLAY_PLAYLIST_BLOCK_END | \ + // 6 + OMNPLAY_PLAYLIST_ITEM_LOOP_END = OMNPLAY_PLAYLIST_BLOCK_END | OMNPLAY_PLAYLIST_BLOCK_LOOP, - - OMNPLAY_PLAYLIST_ITEM_LOOP_SINGLE = OMNPLAY_PLAYLIST_BLOCK_END | \ - OMNPLAY_PLAYLIST_BLOCK_BODY | \ - OMNPLAY_PLAYLIST_BLOCK_END | \ + // 7 + OMNPLAY_PLAYLIST_ITEM_LOOP_SINGLE = OMNPLAY_PLAYLIST_BLOCK_BEGIN | + OMNPLAY_PLAYLIST_BLOCK_BODY | + OMNPLAY_PLAYLIST_BLOCK_END | OMNPLAY_PLAYLIST_BLOCK_LOOP, } playlist_item_type_t; @@ -133,6 +134,8 @@ typedef struct omnplay_instance int ver_curr; int ver_prev; pthread_mutex_t lock; + char* path; + GdkPixbuf *block_icons[8]; } playlist; } omnplay_instance_t; @@ -142,6 +145,7 @@ void omnplay_release(omnplay_instance_t* app); void omnplay_destroy(omnplay_instance_t* app); void omnplay_playlist_load(omnplay_instance_t* app); void omnplay_playlist_save(omnplay_instance_t* app); +void omnplay_playlist_draw(omnplay_instance_t* app); #ifdef __cplusplus };