case BUTTON_PLAYLIST_ITEM_DEL:
case BUTTON_PLAYLIST_ITEM_EDIT:
case BUTTON_PLAYLIST_LOAD:
+ omnplay_playlist_load(app);
+ break;
case BUTTON_PLAYLIST_SAVE:
+ omnplay_playlist_save(app);
+ break;
case BUTTON_PLAYLIST_BLOCK_SINGLE:
case BUTTON_PLAYLIST_BLOCK_LOOP:
case BUTTON_PLAYLIST_ITEM_UP:
pthread_mutex_destroy(&app->players.item[i].lock);
};
+
+ /* create lock */
+ pthread_mutex_destroy(&app->playlist.lock);
};
void omnplay_init(omnplay_instance_t* app);
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);
#ifdef __cplusplus
};
--- /dev/null
+/*
+ * playlist.c -- GTK+ 2 omnplay
+ * Copyright (C) 2011 Maksym Veremeyenko <verem@m1stereo.tv>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+#include <pthread.h>
+
+#include "omnplay.h"
+#include "ui.h"
+
+void omnplay_playlist_load(omnplay_instance_t* app)
+{
+};
+
+void omnplay_playlist_save(omnplay_instance_t* app)
+{
+};
+