Lines Matching refs:deadbeef

44     ddb_playlist_t *plt = deadbeef->plt_get_curr ();  in gtkpl_adddir_cb()
45 deadbeef->plt_add_dir2 (0, plt, data, NULL, NULL); in gtkpl_adddir_cb()
46 deadbeef->plt_unref (plt); in gtkpl_adddir_cb()
52 ddb_playlist_t *plt = deadbeef->plt_get_curr (); in gtkpl_add_dirs()
53 int empty = 0 == deadbeef->plt_get_item_count (plt, PL_MAIN); in gtkpl_add_dirs()
54 if (deadbeef->plt_add_files_begin (plt, 0) < 0) { in gtkpl_add_dirs()
55 deadbeef->plt_unref (plt); in gtkpl_add_dirs()
59 deadbeef->pl_lock (); in gtkpl_add_dirs()
61 && deadbeef->conf_get_int ("gtkui.name_playlist_from_folder", 1)) { in gtkpl_add_dirs()
63 if (!deadbeef->plt_get_title (plt, t, sizeof (t))) { in gtkpl_add_dirs()
70 deadbeef->plt_set_title (plt, folder+1); in gtkpl_add_dirs()
74 deadbeef->pl_unlock (); in gtkpl_add_dirs()
77 deadbeef->plt_add_files_end (plt, 0); in gtkpl_add_dirs()
78 deadbeef->plt_unref (plt); in gtkpl_add_dirs()
83 ddb_playlist_t *plt = deadbeef->plt_get_curr (); in gtkpl_addfile_cb()
84 deadbeef->plt_add_file2 (0, plt, data, NULL, 0); in gtkpl_addfile_cb()
85 deadbeef->plt_unref (plt); in gtkpl_addfile_cb()
91 ddb_playlist_t *plt = deadbeef->plt_get_curr (); in gtkpl_add_files()
92 if (deadbeef->plt_add_files_begin (plt, 0) < 0) { in gtkpl_add_files()
94 deadbeef->plt_unref (plt); in gtkpl_add_files()
99 deadbeef->plt_add_files_end (plt, 0); in gtkpl_add_files()
100 deadbeef->plt_save_config (plt); in gtkpl_add_files()
101 deadbeef->plt_unref (plt); in gtkpl_add_files()
102 deadbeef->conf_save (); in gtkpl_add_files()
109 deadbeef->pl_save_current (); in add_dirs_worker()
110 deadbeef->conf_save (); in add_dirs_worker()
115 intptr_t tid = deadbeef->thread_start (add_dirs_worker, lst); in gtkui_add_dirs()
116 deadbeef->thread_detach (tid); in gtkui_add_dirs()
127 intptr_t tid = deadbeef->thread_start (add_files_worker, lst); in gtkui_add_files()
128 deadbeef->thread_detach (tid); in gtkui_add_files()
135 deadbeef->pl_save_current (); in open_files_worker()
136 deadbeef->pl_set_cursor (PL_MAIN, 0); in open_files_worker()
137 deadbeef->conf_save (); in open_files_worker()
138 deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); in open_files_worker()
139 deadbeef->sendmessage (DB_EV_PLAY_NUM, 0, 0, 0); in open_files_worker()
144 deadbeef->pl_clear (); in gtkui_open_files()
145 deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); in gtkui_open_files()
147 intptr_t tid = deadbeef->thread_start (open_files_worker, lst); in gtkui_open_files()
148 deadbeef->thread_detach (tid); in gtkui_open_files()
196 deadbeef->pl_set_cursor (PL_MAIN, -1); in set_dnd_cursor_idle()
197 deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); in set_dnd_cursor_idle()
200 int cursor = deadbeef->pl_get_idx_of (DB_PLAYITEM (data)); in set_dnd_cursor_idle()
201 deadbeef->pl_set_cursor (PL_MAIN, cursor); in set_dnd_cursor_idle()
202 deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, DDB_PLAYLIST_CHANGE_CONTENT, 0); in set_dnd_cursor_idle()
208 ddb_playlist_t *plt = deadbeef->plt_get_curr (); in gtkpl_add_fm_dropped_files()
209 if (deadbeef->plt_add_files_begin (plt, 0) < 0) { in gtkpl_add_fm_dropped_files()
211 deadbeef->plt_unref (plt); in gtkpl_add_fm_dropped_files()
218 after = deadbeef->pl_get_prev (drop_before, PL_MAIN); in gtkpl_add_fm_dropped_files()
221 after = deadbeef->pl_get_last (PL_MAIN); in gtkpl_add_fm_dropped_files()
235 … DdbListviewIter inserted = deadbeef->plt_insert_dir2 (0, plt, after, fname, &abort, NULL, NULL); in gtkpl_add_fm_dropped_files()
237 inserted = deadbeef->plt_insert_file2 (0, plt, after, fname, &abort, NULL, NULL); in gtkpl_add_fm_dropped_files()
239 inserted = deadbeef->plt_load2 (0, plt, after, fname, &abort, NULL, NULL); in gtkpl_add_fm_dropped_files()
247 deadbeef->pl_item_unref (after); in gtkpl_add_fm_dropped_files()
250 deadbeef->pl_item_ref (after); in gtkpl_add_fm_dropped_files()
260 deadbeef->pl_item_unref (after); in gtkpl_add_fm_dropped_files()
264 deadbeef->plt_add_files_end (plt, 0); in gtkpl_add_fm_dropped_files()
265 deadbeef->plt_save_config (plt); in gtkpl_add_fm_dropped_files()
266 deadbeef->plt_unref (plt); in gtkpl_add_fm_dropped_files()
281 deadbeef->pl_item_unref (data->drop_before); in fmdrop_worker()
296 deadbeef->pl_item_ref (before); in gtkui_receive_fm_drop()
300 intptr_t tid = deadbeef->thread_start (fmdrop_worker, data); in gtkui_receive_fm_drop()
301 deadbeef->thread_detach (tid); in gtkui_receive_fm_drop()