lua remove unneeded plugin functions

Change-Id: I04bc38d03b7f0ca65a815685eb6ab0f5ff825c45
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index b37f524..d1ef3ad 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -77,6 +77,15 @@
 }
 #endif
 
+RB_WRAP(thread_set_priority)
+{
+    unsigned int thread_id = rb->thread_self();
+    int priority = (int) luaL_checkint(L, 1);
+    int result = rb->thread_set_priority(thread_id, priority);
+    lua_pushinteger(L, result);
+    return 1;
+}
+
 RB_WRAP(current_path)
 {
     return get_current_path(L, 1);
@@ -769,6 +778,7 @@
 #ifdef HAVE_SCHEDULER_BOOSTCTRL
     RB_FUNC(schedule_cpu_boost),
 #endif
+    RB_FUNC(thread_set_priority),
 
     RB_FUNC(current_path),
 
@@ -846,7 +856,7 @@
     lua_pushstring(L, "rb_defines");
     if (lua_pcall (L, 1, 0, 0))
         lua_pop(L, 1);
-#if 0
+#if 0 /* see rb_defines.lua */
     static const struct lua_int_reg rlib_const_int[] =
     {
         /* useful integer constants */
diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl
index c059801..542a928 100755
--- a/apps/plugins/lua/rocklib_aux.pl
+++ b/apps/plugins/lua/rocklib_aux.pl
@@ -53,6 +53,7 @@
 my @forbidden_functions = ('^open$',
                            '^open_utf8$',
                            '^close$',
+                           'dcache',
                            '^read$',
                            '^write$',
                            '^mkdir$',
@@ -101,7 +102,13 @@
                            '^pcm_(set_frequency|calculate_peaks)$',
                            '^sound_(set|current|default|min|max|unit|pitch|val2phys)$',
                            '^mixer_(set|get)_frequency$',
+                           '^rock_plugin_get_current_filename$',
+                           '^plugin_release_audio_buffer$',
+                           '^reload_directory$',
+                           '^set_current_file$',
+                           '^set_dirfilter$',
                            '^(trigger|cancel)_cpu_boost$',
+                           '^thread_',
                            '^round_value_to_list32$');
 
 my $rocklib = sprintf("%s/rocklib.c", $ARGV[0]);