#define MAX_PLAYERS 4
+struct omnplay_instance;
+
typedef struct omnplay_player
{
+ int idx;
char name[PATH_MAX];
char host[PATH_MAX];
void* handle;
pthread_t thread;
pthread_mutex_t lock;
GtkWidget *label_status, *label_state, *label_tc_cur, *label_tc_rem, *label_clip;
+ struct omnplay_instance *app;
}
omnplay_player_t;
*p = 0;
strncpy(app->players.item[app->players.count].name, optarg, PATH_MAX);
strncpy(app->players.item[app->players.count].host, p + 1, PATH_MAX);
+ app->players.item[app->players.count].idx = app->players.count;
+ app->players.item[app->players.count].app = app;
app->players.count++;
};
break;