[vala-extra-vapis/wip/espeak: 3/4] espeak: eliminated pointers in method signatures



commit 6c86c7ef57639d2e7c264fa9a8aac0c20f96447a
Author: grindhold <grindhold gmx net>
Date:   Sun Jun 28 23:16:21 2020 +0200

    espeak: eliminated pointers in method signatures

 espeak.vapi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/espeak.vapi b/espeak.vapi
index 339627b..776a8e1 100644
--- a/espeak.vapi
+++ b/espeak.vapi
@@ -187,17 +187,17 @@ namespace Espeak {
         void* spare;
     }
 
-    [CCode (cname = "espeak_ListVoices")]
-    public Voice** list_voices(ref Voice voice_spec);
+    [CCode (cname = "espeak_ListVoices", array_length=false, array_null_terminated=true)]
+    public (unowned Voice?)[] list_voices(Voice? voice_spec);
 
     [CCode (cname = "espeak_SetVoiceByName")]
     public Error set_voice_by_name(string name);
 
-    [CCode (cname = "espeak_setVoiceByProperties")]
-    public Error set_voice_by_properties(ref Voice voice_spec);
+    [CCode (cname = "espeak_SetVoiceByProperties")]
+    public Error set_voice_by_properties(Voice? voice_spec);
 
     [CCode (cname = "espeak_GetCurrentVoice")]
-    public Voice* get_current_voice();
+    public unowned Voice? get_current_voice();
 
     [CCode (cname = "espeak_Cancel")]
     public Error cancel();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]