diff options
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -119,6 +119,8 @@ static DB_functions_t deadbeef_api = { .conf_get_int = conf_get_int, .conf_set_str = conf_set_str, .conf_find = conf_find, + .gui_lock = plug_gui_lock, + .gui_unlock = plug_gui_unlock, }; DB_functions_t *deadbeef = &deadbeef_api; @@ -153,6 +155,16 @@ DB_decoder_t *g_decoder_plugins[MAX_DECODER_PLUGINS+1]; DB_vfs_t *g_vfs_plugins[MAX_VFS_PLUGINS+1]; void +plug_gui_lock (void) { + gdk_threads_enter (); +} + +void +plug_gui_unlock (void) { + gdk_threads_leave (); +} + +void plug_md5 (uint8_t sig[16], const char *in, int len) { md5_buffer (in, len, sig); } |