X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Finstance.h;h=be3fa87ab7e09475843b2714943a74ed59752cfa;hb=cd24eeef6c4d1ad70ff4882ba9566e27d4dc8e0f;hp=99b3de6713bdd605ce4589c534d8984ae41a5479;hpb=8f058cdb606938af320e3ca33a7c10a14741a0d6;p=melted_gui diff --git a/src/instance.h b/src/instance.h index 99b3de6..be3fa87 100644 --- a/src/instance.h +++ b/src/instance.h @@ -98,18 +98,25 @@ typedef enum playlist_item_type #define PLAYLIST_ITEM_ERROR_LIB 1 #define PLAYLIST_ITEM_ERROR_CUE 2 +/** + * @anchor playlist_item_t + * + * fu + */ typedef struct playlist_item { - char id[PATH_MAX]; - char title[PATH_MAX]; +/*@{*/ + char id[PATH_MAX]; /**< id of item, i.e. internal id or filename */ + char title[PATH_MAX]; /**< title */ int in; int dur; - int player; - playlist_item_type_t type; - int omn_idx; + int player; /**< player index that item currenly associated, -1 otherwise */ + playlist_item_type_t type; /**< block type of item */ + int int_idx; /**< internal playlist index */ int omn_offset; - int error; - int del; + int error; /**< flag indicates if any error occured with item */ + int del; /**< */ +/*@}*/ } playlist_item_t; #define MAX_PLAYERS 4 @@ -140,6 +147,7 @@ typedef struct instance_desc player_t item[MAX_PLAYERS]; int count; char host[PATH_MAX]; + int port; pthread_mutex_t lock; } players; int f_exit; @@ -155,7 +163,11 @@ typedef struct instance_desc } playlist; struct { + int port; void* handle[2]; + GdkPixbuf *icons[8]; + + playlist_item_t item[MAX_LIBRARY_ITEMS]; int count; char filename[PATH_MAX];