summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorMarcin Lewandowski <marcin@radiokit.org>2016-01-16 15:42:34 +0100
committerArun Raghavan <git@arunraghavan.net>2016-01-22 13:25:29 +0530
commit81d3eb84672726e61d46dcb429a73422f43b691c (patch)
tree859aff9e7a2b9a69d46b92464210804ee21a9c75 /vala
parent6a754ad4a975de8f7b4d6520a6f6c5f43f6f786b (diff)
vala: Added cnames to callback delegates in Vala VAPI
Diffstat (limited to 'vala')
-rw-r--r--vala/libpulse.vapi15
1 files changed, 15 insertions, 0 deletions
diff --git a/vala/libpulse.vapi b/vala/libpulse.vapi
index 345e284d5..207cedf3a 100644
--- a/vala/libpulse.vapi
+++ b/vala/libpulse.vapi
@@ -956,20 +956,35 @@ namespace PulseAudio {
TYPE_MASK
}
+ [CCode (cname = "pa_context_notify_cb_t")]
public delegate void NotifyCb(Context c);
+ [CCode (cname = "pa_context_success_cb_t")]
public delegate void SuccessCb(Context c, int success);
+ [CCode (cname = "pa_context_event_cb_t")]
public delegate void EventCb(Context c, string name, Proplist? proplist);
+ [CCode (cname = "pa_context_subscribe_cb_t")]
public delegate void SubscribeCb(Context c, SubscriptionEventType t, uint32 idx);
+ [CCode (cname = "pa_sink_info_cb_t")]
public delegate void SinkInfoCb(Context c, SinkInfo? i, int eol);
+ [CCode (cname = "pa_source_info_cb_t")]
public delegate void SourceInfoCb(Context c, SourceInfo? i, int eol);
+ [CCode (cname = "pa_card_info_cb_t")]
public delegate void CardInfoCb(Context c, CardInfo? i, int eol);
+ [CCode (cname = "pa_sink_input_info_cb_t")]
public delegate void SinkInputInfoCb(Context c, SinkInputInfo? i, int eol);
+ [CCode (cname = "pa_source_output_info_cb_t")]
public delegate void SourceOutputInfoCb(Context c, SourceOutputInfo? i, int eol);
+ [CCode (cname = "pa_server_info_cb_t")]
public delegate void ServerInfoCb(Context c, ServerInfo? i);
+ [CCode (cname = "pa_stat_info_cb_t")]
public delegate void StatInfoCb(Context c, ServerInfo? i);
+ [CCode (cname = "pa_module_info_cb_t")]
public delegate void ModuleInfoCb(Context c, ModuleInfo? i, int eol);
+ [CCode (cname = "pa_client_info_cb_t")]
public delegate void ClientInfoCb(Context c, ClientInfo? i, int eol);
+ [CCode (cname = "pa_sample_info_cb_t")]
public delegate void SampleInfoCb(Context c, SampleInfo? i, int eol);
+ [CCode (cname = "pa_context_index_cb_t")]
public delegate void IndexCb(Context c, uint32 idx);
[CCode (cname="pa_context_new_with_proplist")]