about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrappedgstreamertypes.h1
-rw-r--r--src/wrapped/wrappedgstreamer.c28
-rw-r--r--src/wrapped/wrappedgstreamer_private.h4
4 files changed, 32 insertions, 2 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 118b8d95..3bfcec5e 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -3802,6 +3802,7 @@ wrappedgstreamer:
   - gst_pad_set_chain_function_full
   - gst_pad_set_event_function_full
   - gst_pad_set_getrange_function_full
+  - gst_pad_set_iterate_internal_links_function_full
   - gst_pad_set_link_function_full
   - gst_pad_set_query_function_full
 - iFpppp:
diff --git a/src/wrapped/generated/wrappedgstreamertypes.h b/src/wrapped/generated/wrappedgstreamertypes.h
index a063f1f0..187a27bb 100644
--- a/src/wrapped/generated/wrappedgstreamertypes.h
+++ b/src/wrapped/generated/wrappedgstreamertypes.h
@@ -85,6 +85,7 @@ typedef int32_t (*iFiipppppppp_t)(int32_t, int32_t, void*, void*, void*, void*,
 	GO(gst_pad_set_chain_function_full, vFpppp_t) \
 	GO(gst_pad_set_event_function_full, vFpppp_t) \
 	GO(gst_pad_set_getrange_function_full, vFpppp_t) \
+	GO(gst_pad_set_iterate_internal_links_function_full, vFpppp_t) \
 	GO(gst_pad_set_link_function_full, vFpppp_t) \
 	GO(gst_pad_set_query_function_full, vFpppp_t) \
 	GO(gst_iterator_fold, iFpppp_t) \
diff --git a/src/wrapped/wrappedgstreamer.c b/src/wrapped/wrappedgstreamer.c
index 93adcd7f..de486475 100644
--- a/src/wrapped/wrappedgstreamer.c
+++ b/src/wrapped/wrappedgstreamer.c
@@ -587,6 +587,29 @@ static void* findGstTypeFindFunctionFct(void* fct)
     printf_log(LOG_NONE, "Warning, no more slot for gstreamer GstTypeFindFunction callback\n");
     return NULL;
 }
+//GstPadIterIntLinkFunction
+#define GO(A)   \
+static uintptr_t my_GstPadIterIntLinkFunction_fct_##A = 0;                          \
+static void* my_GstPadIterIntLinkFunction_##A(void* a, void* b)                     \
+{                                                                                   \
+    return (void*)RunFunctionFmt(my_GstPadIterIntLinkFunction_fct_##A, "pp", a, b); \
+}
+SUPER()
+#undef GO
+static void* findGstPadIterIntLinkFunctionFct(void* fct)
+{
+    if(!fct) return fct;
+    void* p;
+    if((p = GetNativeFnc((uintptr_t)fct))) return p;
+    #define GO(A) if(my_GstPadIterIntLinkFunction_fct_##A == (uintptr_t)fct) return my_GstPadIterIntLinkFunction_##A;
+    SUPER()
+    #undef GO
+    #define GO(A) if(my_GstPadIterIntLinkFunction_fct_##A == 0) {my_GstPadIterIntLinkFunction_fct_##A = (uintptr_t)fct; return my_GstPadIterIntLinkFunction_##A; }
+    SUPER()
+    #undef GO
+    printf_log(LOG_NONE, "Warning, no more slot for gstreamer GstPadIterIntLinkFunction callback\n");
+    return NULL;
+}
 
 #undef SUPER
 
@@ -1054,6 +1077,11 @@ EXPORT int my_gst_type_find_register(x64emu_t* emu, void* plugin, void* name, ui
     return my->gst_type_find_register(plugin, name, rank, findGstTypeFindFunctionFct(f), ext, caps, data, findDestroyFct(f));
 }
 
+EXPORT void my_gst_pad_set_iterate_internal_links_function_full(x64emu_t* emu, void* pad, void* f, void* data, void* d)
+{
+    my->gst_pad_set_iterate_internal_links_function_full(pad, findGstPadIterIntLinkFunctionFct(f), data, findDestroyFct(d));
+}
+
 #define PRE_INIT    \
     if(box64_nogtk) \
         return -1;
diff --git a/src/wrapped/wrappedgstreamer_private.h b/src/wrapped/wrappedgstreamer_private.h
index bf436cca..e9f2a36b 100644
--- a/src/wrapped/wrappedgstreamer_private.h
+++ b/src/wrapped/wrappedgstreamer_private.h
@@ -751,7 +751,7 @@ GO(gst_iterator_free, vFp)
 //GO(gst_iterator_item_get_type, 
 //GO(gst_iterator_new, 
 //GO(gst_iterator_new_list, 
-//GO(gst_iterator_new_single, 
+GO(gst_iterator_new_single, pFLp)
 GO(gst_iterator_next, iFpp)
 //GO(gst_iterator_push, 
 //GO(gst_iterator_result_get_type, 
@@ -1034,7 +1034,7 @@ GO(gst_pad_set_element_private, vFpp)
 //GOM(gst_pad_set_event_full_function_full, vFpBpB)
 GOM(gst_pad_set_event_function_full, vFEpppp)
 GOM(gst_pad_set_getrange_function_full, vFEpppp)
-//GOM(gst_pad_set_iterate_internal_links_function_full, vFEpBpB)
+GOM(gst_pad_set_iterate_internal_links_function_full, vFEpppp)
 GOM(gst_pad_set_link_function_full, vFEpppp)
 GO(gst_pad_set_offset, vFpI)
 GOM(gst_pad_set_query_function_full, vFEpppp)