[libdmapsharing] Update some Vala-related files
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Update some Vala-related files
- Date: Sun, 24 Nov 2013 19:19:18 +0000 (UTC)
commit 3e1b5933336dd3170527d2da2e234c8931520885
Author: W. Michael Petullo <mike flyn org>
Date: Sun Nov 24 14:19:11 2013 -0500
Update some Vala-related files
Signed-off-by: W. Michael Petullo <mike flyn org>
tests/dacplisten.c | 58 +++++++-------
tests/dmapcopy.c | 56 +++++++-------
tests/dmapserve.c | 30 ++++----
tests/dpapview.c | 126 +++++++++++++++---------------
tests/vala-dmap-container-db.c | 34 ++++----
tests/vala-dmap-db.c | 48 ++++++------
tests/vala-dpap-record.c | 104 +++++++++++++-------------
vala/libdmapsharing-3.0.vapi | 164 +++++++++++++++++++++++++++++++++------
8 files changed, 366 insertions(+), 254 deletions(-)
---
diff --git a/tests/dacplisten.c b/tests/dacplisten.c
index 7ebee7b..803ccf2 100644
--- a/tests/dacplisten.c
+++ b/tests/dacplisten.c
@@ -1,4 +1,4 @@
-/* dacplisten.c generated by valac 0.18.1, the Vala compiler
+/* dacplisten.c generated by valac 0.22.1, the Vala compiler
* generated from dacplisten.vala, do not modify */
/* FILE: dacplisten.vala -- Listen to DACP remotes
@@ -143,7 +143,7 @@ gint _vala_main (gchar** args, int args_length1);
static DAAPRecord* vala_dacp_player_real_now_playing_record (DACPPlayer* base) {
ValaDACPPlayer * self;
DAAPRecord* result = NULL;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Now playing record request received\n");
@@ -155,9 +155,9 @@ static DAAPRecord* vala_dacp_player_real_now_playing_record (DACPPlayer* base) {
static guchar* vala_dacp_player_real_now_playing_artwork (DACPPlayer* base, guint width, guint heigth, int*
result_length1) {
ValaDACPPlayer * self;
guchar* result = NULL;
- FILE* _tmp0_;
- guchar* _tmp1_;
- gint _tmp1__length1;
+ FILE* _tmp0_ = NULL;
+ guchar* _tmp1_ = NULL;
+ gint _tmp1__length1 = 0;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Now playing artwork request received\n");
@@ -173,7 +173,7 @@ static guchar* vala_dacp_player_real_now_playing_artwork (DACPPlayer* base, guin
static void vala_dacp_player_real_play_pause (DACPPlayer* base) {
ValaDACPPlayer * self;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Play/pause request received\n");
@@ -182,7 +182,7 @@ static void vala_dacp_player_real_play_pause (DACPPlayer* base) {
static void vala_dacp_player_real_pause (DACPPlayer* base) {
ValaDACPPlayer * self;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Pause request received\n");
@@ -191,7 +191,7 @@ static void vala_dacp_player_real_pause (DACPPlayer* base) {
static void vala_dacp_player_real_next_item (DACPPlayer* base) {
ValaDACPPlayer * self;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Next item request received\n");
@@ -200,7 +200,7 @@ static void vala_dacp_player_real_next_item (DACPPlayer* base) {
static void vala_dacp_player_real_prev_item (DACPPlayer* base) {
ValaDACPPlayer * self;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Previous item request received\n");
@@ -209,7 +209,7 @@ static void vala_dacp_player_real_prev_item (DACPPlayer* base) {
static void vala_dacp_player_real_cue_clear (DACPPlayer* base) {
ValaDACPPlayer * self;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Cue clear request received\n");
@@ -218,7 +218,7 @@ static void vala_dacp_player_real_cue_clear (DACPPlayer* base) {
static void vala_dacp_player_real_cue_play (DACPPlayer* base, GList* records, guint index) {
ValaDACPPlayer * self;
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Cue play request received\n");
@@ -274,9 +274,9 @@ GType vala_dacp_player_get_type (void) {
static void __lambda2_ (DACPListener* self, const gchar* service_name, const gchar* display_name) {
- FILE* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
+ FILE* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
g_return_if_fail (service_name != NULL);
g_return_if_fail (display_name != NULL);
_tmp0_ = stdout;
@@ -292,7 +292,7 @@ static void ___lambda2__dacp_share_remote_found (DACPShare* _sender, const gchar
static void __lambda3_ (DACPListener* self, const gchar* guid) {
- FILE* _tmp0_;
+ FILE* _tmp0_ = NULL;
g_return_if_fail (guid != NULL);
_tmp0_ = stdout;
fprintf (_tmp0_, "Add GUID request received\n");
@@ -306,16 +306,16 @@ static void ___lambda3__dacp_share_add_guid (DACPShare* _sender, const gchar* gu
DACPListener* dacp_listener_construct (GType object_type) {
DACPListener * self = NULL;
- ValaDMAPDb* _tmp0_;
- ValaDMAPContainerDb* _tmp1_;
- ValaDACPPlayer* _tmp2_;
- DACPPlayer* _tmp3_;
- DMAPDb* _tmp4_;
- DMAPContainerDb* _tmp5_;
- DACPShare* _tmp6_;
- DACPShare* _tmp7_;
- DACPShare* _tmp8_;
- DACPShare* _tmp9_;
+ ValaDMAPDb* _tmp0_ = NULL;
+ ValaDMAPContainerDb* _tmp1_ = NULL;
+ ValaDACPPlayer* _tmp2_ = NULL;
+ DACPPlayer* _tmp3_ = NULL;
+ DMAPDb* _tmp4_ = NULL;
+ DMAPContainerDb* _tmp5_ = NULL;
+ DACPShare* _tmp6_ = NULL;
+ DACPShare* _tmp7_ = NULL;
+ DACPShare* _tmp8_ = NULL;
+ DACPShare* _tmp9_ = NULL;
self = (DACPListener*) g_object_new (object_type, NULL);
_tmp0_ = vala_dmap_db_new ();
_g_object_unref0 (self->priv->db);
@@ -384,10 +384,10 @@ GType dacp_listener_get_type (void) {
gint _vala_main (gchar** args, int args_length1) {
gint result = 0;
- GMainLoop* _tmp0_;
- GMainLoop* loop;
- DACPListener* _tmp1_;
- DACPListener* dacplistener;
+ GMainLoop* loop = NULL;
+ GMainLoop* _tmp0_ = NULL;
+ DACPListener* dacplistener = NULL;
+ DACPListener* _tmp1_ = NULL;
_tmp0_ = g_main_loop_new (NULL, FALSE);
loop = _tmp0_;
_tmp1_ = dacp_listener_new ();
diff --git a/tests/dmapcopy.c b/tests/dmapcopy.c
index e5a5060..e914870 100644
--- a/tests/dmapcopy.c
+++ b/tests/dmapcopy.c
@@ -1,4 +1,4 @@
-/* dmapcopy.c generated by valac 0.18.1, the Vala compiler
+/* dmapcopy.c generated by valac 0.22.1, the Vala compiler
* generated from dmapcopy.vala, do not modify */
/* FILE: dmapcopy.vala -- Copy files from a DMAP server
@@ -137,10 +137,10 @@ static void _debug_null_glog_func (const gchar* log_domain, GLogLevelFlags log_l
static void __lambda2_ (DPAPCopy* self, gconstpointer k, gconstpointer v) {
- FILE* _tmp0_;
- gconstpointer _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
+ FILE* _tmp0_ = NULL;
+ gconstpointer _tmp1_ = NULL;
+ const gchar* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
_tmp0_ = stdout;
_tmp1_ = v;
_tmp2_ = vala_dpap_record_get_location (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_VALA_DPAP_RECORD,
ValaDPAPRecord));
@@ -156,9 +156,9 @@ static void ___lambda2__gh_func (gconstpointer key, gconstpointer value, gpointe
static gboolean dpap_copy_connected_cb (DPAPCopy* self, DMAPConnection* connection, gboolean _result_, const
gchar* reason) {
gboolean result = FALSE;
- ValaDMAPDb* _tmp0_;
+ ValaDMAPDb* _tmp0_ = NULL;
gint64 _tmp1_ = 0LL;
- ValaDMAPDb* _tmp2_;
+ ValaDMAPDb* _tmp2_ = NULL;
g_return_val_if_fail (self != NULL, FALSE);
g_return_val_if_fail (connection != NULL, FALSE);
_tmp0_ = self->priv->db;
@@ -179,16 +179,16 @@ static gboolean _dpap_copy_connected_cb_dmap_connection_callback (DMAPConnection
static void dpap_copy_service_added_cb (DPAPCopy* self, DMAPMdnsBrowserService* service) {
- DMAPMdnsBrowserService* _tmp0_;
- const gchar* _tmp1_;
- DMAPMdnsBrowserService* _tmp2_;
- const gchar* _tmp3_;
- DMAPMdnsBrowserService* _tmp4_;
- guint _tmp5_;
- ValaDMAPDb* _tmp6_;
- ValaDPAPRecordFactory* _tmp7_;
- DPAPConnection* _tmp8_;
- DMAPConnection* _tmp9_;
+ DMAPMdnsBrowserService* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ DMAPMdnsBrowserService* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ DMAPMdnsBrowserService* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ ValaDMAPDb* _tmp6_ = NULL;
+ ValaDPAPRecordFactory* _tmp7_ = NULL;
+ DPAPConnection* _tmp8_ = NULL;
+ DMAPConnection* _tmp9_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = service;
_tmp1_ = _tmp0_->service_name;
@@ -213,11 +213,11 @@ static void _dpap_copy_service_added_cb_dmap_mdns_browser_service_added (DMAPMdn
DPAPCopy* dpap_copy_construct (GType object_type, GError** error) {
DPAPCopy* self = NULL;
- ValaDMAPDb* _tmp0_;
- ValaDPAPRecordFactory* _tmp1_;
- DMAPMdnsBrowser* _tmp2_;
- DMAPMdnsBrowser* _tmp3_;
- DMAPMdnsBrowser* _tmp4_;
+ ValaDMAPDb* _tmp0_ = NULL;
+ ValaDPAPRecordFactory* _tmp1_ = NULL;
+ DMAPMdnsBrowser* _tmp2_ = NULL;
+ DMAPMdnsBrowser* _tmp3_ = NULL;
+ DMAPMdnsBrowser* _tmp4_ = NULL;
GError * _inner_error_ = NULL;
self = (DPAPCopy*) g_type_create_instance (object_type);
_tmp0_ = vala_dmap_db_new ();
@@ -413,8 +413,8 @@ void dpap_copy_unref (gpointer instance) {
void debug_printf (const gchar* log_domain, GLogLevelFlags log_level, const gchar* message) {
- FILE* _tmp0_;
- const gchar* _tmp1_;
+ FILE* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
_tmp0_ = stdout;
_tmp1_ = message;
fprintf (_tmp0_, "%s\n", _tmp1_);
@@ -432,10 +432,10 @@ static void _debug_null_glog_func (const gchar* log_domain, GLogLevelFlags log_l
gint _vala_main (gchar** args, int args_length1) {
gint result = 0;
- GMainLoop* _tmp0_;
- GMainLoop* loop;
- DPAPCopy* _tmp1_;
- DPAPCopy* dmapcopy;
+ GMainLoop* loop = NULL;
+ GMainLoop* _tmp0_ = NULL;
+ DPAPCopy* dmapcopy = NULL;
+ DPAPCopy* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
_tmp0_ = g_main_loop_new (NULL, FALSE);
loop = _tmp0_;
diff --git a/tests/dmapserve.c b/tests/dmapserve.c
index 99e766a..8adea7d 100644
--- a/tests/dmapserve.c
+++ b/tests/dmapserve.c
@@ -1,4 +1,4 @@
-/* dmapserve.c generated by valac 0.18.1, the Vala compiler
+/* dmapserve.c generated by valac 0.22.1, the Vala compiler
* generated from dmapserve.vala, do not modify */
/* FILE: dmapserve.vala -- Serve media using DMAP
@@ -133,14 +133,14 @@ static void _debug_printf_glog_func (const gchar* log_domain, GLogLevelFlags log
DPAPServe* dpap_serve_construct (GType object_type, GError** error) {
DPAPServe* self = NULL;
- ValaDPAPRecord* _tmp0_;
- ValaDMAPDb* _tmp1_;
- ValaDMAPDb* _tmp2_;
- ValaDPAPRecord* _tmp3_;
- ValaDMAPContainerDb* _tmp4_;
- ValaDMAPDb* _tmp5_;
- ValaDMAPContainerDb* _tmp6_;
- DPAPShare* _tmp7_;
+ ValaDPAPRecord* _tmp0_ = NULL;
+ ValaDMAPDb* _tmp1_ = NULL;
+ ValaDMAPDb* _tmp2_ = NULL;
+ ValaDPAPRecord* _tmp3_ = NULL;
+ ValaDMAPContainerDb* _tmp4_ = NULL;
+ ValaDMAPDb* _tmp5_ = NULL;
+ ValaDMAPContainerDb* _tmp6_ = NULL;
+ DPAPShare* _tmp7_ = NULL;
self = (DPAPServe*) g_type_create_instance (object_type);
_tmp0_ = vala_dpap_record_new ();
_g_object_unref0 (self->priv->record);
@@ -334,8 +334,8 @@ void dpap_serve_unref (gpointer instance) {
void debug_printf (const gchar* log_domain, GLogLevelFlags log_level, const gchar* message) {
- FILE* _tmp0_;
- const gchar* _tmp1_;
+ FILE* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
_tmp0_ = stdout;
_tmp1_ = message;
fprintf (_tmp0_, "%s\n", _tmp1_);
@@ -353,10 +353,10 @@ static void _debug_printf_glog_func (const gchar* log_domain, GLogLevelFlags log
gint _vala_main (gchar** args, int args_length1) {
gint result = 0;
- GMainLoop* _tmp0_;
- GMainLoop* loop;
- DPAPServe* _tmp1_;
- DPAPServe* dmapcopy;
+ GMainLoop* loop = NULL;
+ GMainLoop* _tmp0_ = NULL;
+ DPAPServe* dmapcopy = NULL;
+ DPAPServe* _tmp1_ = NULL;
GError * _inner_error_ = NULL;
_tmp0_ = g_main_loop_new (NULL, FALSE);
loop = _tmp0_;
diff --git a/tests/dpapview.c b/tests/dpapview.c
index bac0de9..b2c1486 100644
--- a/tests/dpapview.c
+++ b/tests/dpapview.c
@@ -1,4 +1,4 @@
-/* dpapview.c generated by valac 0.18.1, the Vala compiler
+/* dpapview.c generated by valac 0.22.1, the Vala compiler
* generated from dpapview.vala, do not modify */
/* FILE: dpapviewer.vala -- View DPAP data
@@ -141,19 +141,19 @@ gint _vala_main (gchar** args, int args_length1);
static void __lambda2_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
- GdkPixbuf* pixbuf;
- gconstpointer _tmp0_;
- GByteArray* _tmp1_;
- GByteArray* _tmp2_;
+ GdkPixbuf* pixbuf = NULL;
+ gconstpointer _tmp0_ = NULL;
+ GByteArray* _tmp1_ = NULL;
+ GByteArray* _tmp2_ = NULL;
GtkTreeIter iter = {0};
- GtkListStore* _tmp15_;
+ GtkListStore* _tmp15_ = NULL;
GtkTreeIter _tmp16_ = {0};
- GtkListStore* _tmp17_;
- GtkTreeIter _tmp18_;
- GdkPixbuf* _tmp19_;
- gconstpointer _tmp20_;
- const gchar* _tmp21_;
- const gchar* _tmp22_;
+ GtkListStore* _tmp17_ = NULL;
+ GtkTreeIter _tmp18_ = {0};
+ GdkPixbuf* _tmp19_ = NULL;
+ gconstpointer _tmp20_ = NULL;
+ const gchar* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
GError * _inner_error_ = NULL;
pixbuf = NULL;
_tmp0_ = v;
@@ -161,20 +161,20 @@ static void __lambda2_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
_tmp2_ = _tmp1_;
if (_tmp2_ != NULL) {
gchar* path = NULL;
+ gint fd = 0;
gchar* _tmp3_ = NULL;
gint _tmp4_ = 0;
- gint fd;
- const gchar* _tmp5_;
- gconstpointer _tmp6_;
- GByteArray* _tmp7_;
- GByteArray* _tmp8_;
- guint8* _tmp9_;
- gint _tmp9__length1;
- gint _tmp10_;
- const gchar* _tmp11_;
- GdkPixbuf* _tmp12_;
- GdkPixbuf* _tmp13_;
- const gchar* _tmp14_;
+ const gchar* _tmp5_ = NULL;
+ gconstpointer _tmp6_ = NULL;
+ GByteArray* _tmp7_ = NULL;
+ GByteArray* _tmp8_ = NULL;
+ guint8* _tmp9_ = NULL;
+ gint _tmp9__length1 = 0;
+ gint _tmp10_ = 0;
+ GdkPixbuf* _tmp11_ = NULL;
+ const gchar* _tmp12_ = NULL;
+ GdkPixbuf* _tmp13_ = NULL;
+ const gchar* _tmp14_ = NULL;
_tmp4_ = g_file_open_tmp ("dpapview.XXXXXX", &_tmp3_, &_inner_error_);
_g_free0 (path);
path = _tmp3_;
@@ -202,9 +202,9 @@ static void __lambda2_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
}
_tmp10_ = fd;
close (_tmp10_);
- _tmp11_ = path;
- _tmp12_ = gdk_pixbuf_new_from_file (_tmp11_, &_inner_error_);
- _tmp13_ = _tmp12_;
+ _tmp12_ = path;
+ _tmp13_ = gdk_pixbuf_new_from_file (_tmp12_, &_inner_error_);
+ _tmp11_ = _tmp13_;
if (_inner_error_ != NULL) {
_g_free0 (path);
_g_object_unref0 (pixbuf);
@@ -213,7 +213,7 @@ static void __lambda2_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
return;
}
_g_object_unref0 (pixbuf);
- pixbuf = _tmp13_;
+ pixbuf = _tmp11_;
_tmp14_ = path;
g_unlink (_tmp14_);
_g_free0 (path);
@@ -239,9 +239,9 @@ static void ___lambda2__gh_func (gconstpointer key, gconstpointer value, gpointe
static gboolean dpap_viewer_connected_cb (DPAPViewer* self, DMAPConnection* connection, gboolean _result_,
const gchar* reason) {
gboolean result = FALSE;
- ValaDMAPDb* _tmp0_;
+ ValaDMAPDb* _tmp0_ = NULL;
gint64 _tmp1_ = 0LL;
- ValaDMAPDb* _tmp2_;
+ ValaDMAPDb* _tmp2_ = NULL;
g_return_val_if_fail (self != NULL, FALSE);
g_return_val_if_fail (connection != NULL, FALSE);
_tmp0_ = self->priv->db;
@@ -262,16 +262,16 @@ static gboolean _dpap_viewer_connected_cb_dmap_connection_callback (DMAPConnecti
static void dpap_viewer_service_added_cb (DPAPViewer* self, DMAPMdnsBrowserService* service) {
- DMAPMdnsBrowserService* _tmp0_;
- const gchar* _tmp1_;
- DMAPMdnsBrowserService* _tmp2_;
- const gchar* _tmp3_;
- DMAPMdnsBrowserService* _tmp4_;
- guint _tmp5_;
- ValaDMAPDb* _tmp6_;
- ValaDPAPRecordFactory* _tmp7_;
- DPAPConnection* _tmp8_;
- DMAPConnection* _tmp9_;
+ DMAPMdnsBrowserService* _tmp0_ = NULL;
+ const gchar* _tmp1_ = NULL;
+ DMAPMdnsBrowserService* _tmp2_ = NULL;
+ const gchar* _tmp3_ = NULL;
+ DMAPMdnsBrowserService* _tmp4_ = NULL;
+ guint _tmp5_ = 0U;
+ ValaDMAPDb* _tmp6_ = NULL;
+ ValaDPAPRecordFactory* _tmp7_ = NULL;
+ DPAPConnection* _tmp8_ = NULL;
+ DMAPConnection* _tmp9_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = service;
_tmp1_ = _tmp0_->service_name;
@@ -301,23 +301,23 @@ static void _dpap_viewer_service_added_cb_dmap_mdns_browser_service_added (DMAPM
DPAPViewer* dpap_viewer_construct (GType object_type, GtkBuilder* builder, GError** error) {
DPAPViewer* self = NULL;
- GtkBuilder* _tmp0_;
- GtkBuilder* _tmp1_;
+ GtkBuilder* _tmp0_ = NULL;
+ GtkWidget* widget = NULL;
+ GtkBuilder* _tmp1_ = NULL;
GObject* _tmp2_ = NULL;
- GtkWidget* _tmp3_;
- GtkWidget* widget;
- GtkBuilder* _tmp4_;
+ GtkWidget* _tmp3_ = NULL;
+ GtkIconView* iconview = NULL;
+ GtkBuilder* _tmp4_ = NULL;
GObject* _tmp5_ = NULL;
- GtkIconView* _tmp6_;
- GtkIconView* iconview;
- GtkBuilder* _tmp7_;
+ GtkIconView* _tmp6_ = NULL;
+ GtkBuilder* _tmp7_ = NULL;
GObject* _tmp8_ = NULL;
- GtkListStore* _tmp9_;
- ValaDMAPDb* _tmp10_;
- ValaDPAPRecordFactory* _tmp11_;
- DMAPMdnsBrowser* _tmp12_;
- DMAPMdnsBrowser* _tmp13_;
- DMAPMdnsBrowser* _tmp14_;
+ GtkListStore* _tmp9_ = NULL;
+ ValaDMAPDb* _tmp10_ = NULL;
+ ValaDPAPRecordFactory* _tmp11_ = NULL;
+ DMAPMdnsBrowser* _tmp12_ = NULL;
+ DMAPMdnsBrowser* _tmp13_ = NULL;
+ DMAPMdnsBrowser* _tmp14_ = NULL;
GError * _inner_error_ = NULL;
g_return_val_if_fail (builder != NULL, NULL);
self = (DPAPViewer*) g_type_create_instance (object_type);
@@ -541,12 +541,12 @@ gint _vala_main (gchar** args, int args_length1) {
GError * _inner_error_ = NULL;
gtk_init (&args_length1, &args);
{
- GtkBuilder* _tmp0_;
- GtkBuilder* builder;
- GtkBuilder* _tmp1_;
- GtkBuilder* _tmp2_;
- DPAPViewer* _tmp3_;
- DPAPViewer* dpapviewer;
+ GtkBuilder* builder = NULL;
+ GtkBuilder* _tmp0_ = NULL;
+ GtkBuilder* _tmp1_ = NULL;
+ DPAPViewer* dpapviewer = NULL;
+ GtkBuilder* _tmp2_ = NULL;
+ DPAPViewer* _tmp3_ = NULL;
_tmp0_ = gtk_builder_new ();
builder = _tmp0_;
_tmp1_ = builder;
@@ -570,9 +570,9 @@ gint _vala_main (gchar** args, int args_length1) {
__catch0_g_error:
{
GError* e = NULL;
- FILE* _tmp4_;
- GError* _tmp5_;
- const gchar* _tmp6_;
+ FILE* _tmp4_ = NULL;
+ GError* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
e = _inner_error_;
_inner_error_ = NULL;
_tmp4_ = stderr;
diff --git a/tests/vala-dmap-container-db.c b/tests/vala-dmap-container-db.c
index de6e922..c98e8bc 100644
--- a/tests/vala-dmap-container-db.c
+++ b/tests/vala-dmap-container-db.c
@@ -1,4 +1,4 @@
-/* vala-dmap-container-db.c generated by valac 0.18.1, the Vala compiler
+/* vala-dmap-container-db.c generated by valac 0.22.1, the Vala compiler
* generated from vala-dmap-container-db.vala, do not modify */
/* FILE: vala-dmap-db.vala -- A DMAPContainerDb implementation in Vala
@@ -75,9 +75,9 @@ static void vala_dmap_container_db_finalize (GObject* obj);
static gint64 vala_dmap_container_db_real_count (DMAPContainerDb* base) {
ValaDMAPContainerDb * self;
gint64 result = 0LL;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
+ GeeArrayList* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
self = (ValaDMAPContainerDb*) base;
_tmp0_ = self->priv->db;
_tmp1_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp0_);
@@ -92,25 +92,25 @@ static void vala_dmap_container_db_real_foreach (DMAPContainerDb* base, GHFunc f
gint i = 0;
self = (ValaDMAPContainerDb*) base;
{
- gboolean _tmp0_;
+ gboolean _tmp0_ = FALSE;
i = 0;
_tmp0_ = TRUE;
while (TRUE) {
- gboolean _tmp1_;
- gint _tmp3_;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- GHFunc _tmp7_;
- void* _tmp7__target;
- gint _tmp8_;
+ gboolean _tmp1_ = FALSE;
+ gint _tmp3_ = 0;
+ GeeArrayList* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ GHFunc _tmp7_ = NULL;
+ void* _tmp7__target = NULL;
+ gint _tmp8_ = 0;
void* _tmp9_ = NULL;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
+ GeeArrayList* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
gpointer _tmp12_ = NULL;
_tmp1_ = _tmp0_;
if (!_tmp1_) {
- gint _tmp2_;
+ gint _tmp2_ = 0;
_tmp2_ = i;
i = _tmp2_ + 1;
}
@@ -181,7 +181,7 @@ static void vala_dmap_container_db_dmap_container_db_interface_init (DMAPContain
static void vala_dmap_container_db_instance_init (ValaDMAPContainerDb * self) {
- GeeArrayList* _tmp0_;
+ GeeArrayList* _tmp0_ = NULL;
self->priv = VALA_DMAP_CONTAINER_DB_GET_PRIVATE (self);
_tmp0_ = gee_array_list_new (DMAP_TYPE_RECORD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL,
NULL, NULL);
self->priv->db = _tmp0_;
diff --git a/tests/vala-dmap-db.c b/tests/vala-dmap-db.c
index d267d03..208eb09 100644
--- a/tests/vala-dmap-db.c
+++ b/tests/vala-dmap-db.c
@@ -1,4 +1,4 @@
-/* vala-dmap-db.c generated by valac 0.18.1, the Vala compiler
+/* vala-dmap-db.c generated by valac 0.22.1, the Vala compiler
* generated from vala-dmap-db.vala, do not modify */
/* FILE: vala-dmap-db.vala -- A DMAPDb implementation in Vala
@@ -80,11 +80,11 @@ static void vala_dmap_db_finalize (GObject* obj);
static guint vala_dmap_db_real_add (DMAPDb* base, DMAPRecord* record) {
ValaDMAPDb * self;
guint result = 0U;
- GeeArrayList* _tmp0_;
- DMAPRecord* _tmp1_;
- GeeArrayList* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
+ GeeArrayList* _tmp0_ = NULL;
+ DMAPRecord* _tmp1_ = NULL;
+ GeeArrayList* _tmp2_ = NULL;
+ gint _tmp3_ = 0;
+ gint _tmp4_ = 0;
self = (ValaDMAPDb*) base;
g_return_val_if_fail (record != NULL, 0U);
_tmp0_ = self->priv->db;
@@ -121,9 +121,9 @@ static guint vala_dmap_db_real_add_with_id (DMAPDb* base, DMAPRecord* record, gu
static gint64 vala_dmap_db_real_count (DMAPDb* base) {
ValaDMAPDb * self;
gint64 result = 0LL;
- GeeArrayList* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
+ GeeArrayList* _tmp0_ = NULL;
+ gint _tmp1_ = 0;
+ gint _tmp2_ = 0;
self = (ValaDMAPDb*) base;
_tmp0_ = self->priv->db;
_tmp1_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp0_);
@@ -138,25 +138,25 @@ static void vala_dmap_db_real_foreach (DMAPDb* base, GHFunc func, void* func_tar
gint i = 0;
self = (ValaDMAPDb*) base;
{
- gboolean _tmp0_;
+ gboolean _tmp0_ = FALSE;
i = 0;
_tmp0_ = TRUE;
while (TRUE) {
- gboolean _tmp1_;
- gint _tmp3_;
- GeeArrayList* _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- GHFunc _tmp7_;
- void* _tmp7__target;
- gint _tmp8_;
+ gboolean _tmp1_ = FALSE;
+ gint _tmp3_ = 0;
+ GeeArrayList* _tmp4_ = NULL;
+ gint _tmp5_ = 0;
+ gint _tmp6_ = 0;
+ GHFunc _tmp7_ = NULL;
+ void* _tmp7__target = NULL;
+ gint _tmp8_ = 0;
void* _tmp9_ = NULL;
- GeeArrayList* _tmp10_;
- gint _tmp11_;
+ GeeArrayList* _tmp10_ = NULL;
+ gint _tmp11_ = 0;
gpointer _tmp12_ = NULL;
_tmp1_ = _tmp0_;
if (!_tmp1_) {
- gint _tmp2_;
+ gint _tmp2_ = 0;
_tmp2_ = i;
i = _tmp2_ + 1;
}
@@ -184,8 +184,8 @@ static void vala_dmap_db_real_foreach (DMAPDb* base, GHFunc func, void* func_tar
static DMAPRecord* vala_dmap_db_real_lookup_by_id (DMAPDb* base, guint id) {
ValaDMAPDb * self;
DMAPRecord* result = NULL;
- GeeArrayList* _tmp0_;
- guint _tmp1_;
+ GeeArrayList* _tmp0_ = NULL;
+ guint _tmp1_ = 0U;
gpointer _tmp2_ = NULL;
self = (ValaDMAPDb*) base;
_tmp0_ = self->priv->db;
@@ -238,7 +238,7 @@ static void vala_dmap_db_dmap_db_interface_init (DMAPDbIface * iface) {
static void vala_dmap_db_instance_init (ValaDMAPDb * self) {
- GeeArrayList* _tmp0_;
+ GeeArrayList* _tmp0_ = NULL;
self->priv = VALA_DMAP_DB_GET_PRIVATE (self);
_tmp0_ = gee_array_list_new (DMAP_TYPE_RECORD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL,
NULL, NULL);
self->priv->db = _tmp0_;
diff --git a/tests/vala-dpap-record.c b/tests/vala-dpap-record.c
index 5df0474..668707e 100644
--- a/tests/vala-dpap-record.c
+++ b/tests/vala-dpap-record.c
@@ -1,4 +1,4 @@
-/* vala-dpap-record.c generated by valac 0.18.1, the Vala compiler
+/* vala-dpap-record.c generated by valac 0.22.1, the Vala compiler
* generated from vala-dpap-record.vala, do not modify */
/* FILE: vala-dpap-record.vala -- A DPAPRecord implementation in Vala
@@ -112,7 +112,7 @@ enum {
VALA_DPAP_RECORD_CREATION_DATE
};
static GInputStream* vala_dpap_record_real_read (DPAPRecord* base, GError** error);
-static DMAPRecord* vala_dpap_record_real_set_from_blob (DMAPRecord* base, GByteArray* blob);
+static gboolean vala_dpap_record_real_set_from_blob (DMAPRecord* base, GByteArray* blob);
static GByteArray* vala_dpap_record_real_to_blob (DMAPRecord* base);
ValaDPAPRecord* vala_dpap_record_new (void);
ValaDPAPRecord* vala_dpap_record_construct (GType object_type);
@@ -159,11 +159,11 @@ static GInputStream* vala_dpap_record_real_read (DPAPRecord* base, GError** erro
}
-static DMAPRecord* vala_dpap_record_real_set_from_blob (DMAPRecord* base, GByteArray* blob) {
+static gboolean vala_dpap_record_real_set_from_blob (DMAPRecord* base, GByteArray* blob) {
ValaDPAPRecord * self;
- DMAPRecord* result = NULL;
+ gboolean result = FALSE;
self = (ValaDPAPRecord*) base;
- g_return_val_if_fail (blob != NULL, NULL);
+ g_return_val_if_fail (blob != NULL, FALSE);
g_error ("vala-dpap-record.vala:99: set_from_blob not implemented");
return result;
}
@@ -181,27 +181,27 @@ static GByteArray* vala_dpap_record_real_to_blob (DMAPRecord* base) {
ValaDPAPRecord* vala_dpap_record_construct (GType object_type) {
ValaDPAPRecord * self = NULL;
gchar* _tmp0_ = NULL;
- gchar* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- const gchar* _tmp6_;
+ gchar* _tmp1_ = NULL;
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_ = NULL;
+ gchar* _tmp4_ = NULL;
+ gchar* _tmp5_ = NULL;
+ const gchar* _tmp6_ = NULL;
gchar* _tmp7_ = NULL;
- gchar* _tmp8_;
- gchar* _tmp9_;
+ gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
+ gchar* path = NULL;
gchar* _tmp10_ = NULL;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gchar* path;
+ gchar* _tmp11_ = NULL;
+ gchar* _tmp12_ = NULL;
+ gchar* _tmp13_ = NULL;
guint8* data = NULL;
gint data_length1 = 0;
gint _data_size_ = 0;
guint8* _tmp14_ = NULL;
size_t _tmp15_;
- GByteArray* _tmp16_;
- GByteArray* _tmp17_;
+ GByteArray* _tmp16_ = NULL;
+ GByteArray* _tmp17_ = NULL;
GError * _inner_error_ = NULL;
self = (ValaDPAPRecord*) g_object_new (object_type, NULL);
_tmp0_ = g_get_current_dir ();
@@ -267,7 +267,7 @@ ValaDPAPRecord* vala_dpap_record_new (void) {
const gchar* vala_dpap_record_get_location (ValaDPAPRecord* self) {
const gchar* result;
- const gchar* _tmp0_;
+ const gchar* _tmp0_ = NULL;
g_return_val_if_fail (self != NULL, NULL);
_tmp0_ = self->priv->_location;
result = _tmp0_;
@@ -276,8 +276,8 @@ const gchar* vala_dpap_record_get_location (ValaDPAPRecord* self) {
void vala_dpap_record_set_location (ValaDPAPRecord* self, const gchar* value) {
- const gchar* _tmp0_;
- gchar* _tmp1_;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = value;
_tmp1_ = g_strdup (_tmp0_);
@@ -289,7 +289,7 @@ void vala_dpap_record_set_location (ValaDPAPRecord* self, const gchar* value) {
const gchar* vala_dpap_record_get_filename (ValaDPAPRecord* self) {
const gchar* result;
- const gchar* _tmp0_;
+ const gchar* _tmp0_ = NULL;
g_return_val_if_fail (self != NULL, NULL);
_tmp0_ = self->priv->_filename;
result = _tmp0_;
@@ -298,8 +298,8 @@ const gchar* vala_dpap_record_get_filename (ValaDPAPRecord* self) {
void vala_dpap_record_set_filename (ValaDPAPRecord* self, const gchar* value) {
- const gchar* _tmp0_;
- gchar* _tmp1_;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = value;
_tmp1_ = g_strdup (_tmp0_);
@@ -311,7 +311,7 @@ void vala_dpap_record_set_filename (ValaDPAPRecord* self, const gchar* value) {
const gchar* vala_dpap_record_get_aspect_ratio (ValaDPAPRecord* self) {
const gchar* result;
- const gchar* _tmp0_;
+ const gchar* _tmp0_ = NULL;
g_return_val_if_fail (self != NULL, NULL);
_tmp0_ = self->priv->_aspect_ratio;
result = _tmp0_;
@@ -320,8 +320,8 @@ const gchar* vala_dpap_record_get_aspect_ratio (ValaDPAPRecord* self) {
void vala_dpap_record_set_aspect_ratio (ValaDPAPRecord* self, const gchar* value) {
- const gchar* _tmp0_;
- gchar* _tmp1_;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = value;
_tmp1_ = g_strdup (_tmp0_);
@@ -333,7 +333,7 @@ void vala_dpap_record_set_aspect_ratio (ValaDPAPRecord* self, const gchar* value
const gchar* vala_dpap_record_get_format (ValaDPAPRecord* self) {
const gchar* result;
- const gchar* _tmp0_;
+ const gchar* _tmp0_ = NULL;
g_return_val_if_fail (self != NULL, NULL);
_tmp0_ = self->priv->_format;
result = _tmp0_;
@@ -342,8 +342,8 @@ const gchar* vala_dpap_record_get_format (ValaDPAPRecord* self) {
void vala_dpap_record_set_format (ValaDPAPRecord* self, const gchar* value) {
- const gchar* _tmp0_;
- gchar* _tmp1_;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = value;
_tmp1_ = g_strdup (_tmp0_);
@@ -355,7 +355,7 @@ void vala_dpap_record_set_format (ValaDPAPRecord* self, const gchar* value) {
GByteArray* vala_dpap_record_get_thumbnail (ValaDPAPRecord* self) {
GByteArray* result;
- GByteArray* _tmp0_;
+ GByteArray* _tmp0_ = NULL;
g_return_val_if_fail (self != NULL, NULL);
_tmp0_ = self->priv->_thumbnail;
result = _tmp0_;
@@ -364,11 +364,11 @@ GByteArray* vala_dpap_record_get_thumbnail (ValaDPAPRecord* self) {
void vala_dpap_record_set_thumbnail (ValaDPAPRecord* self, GByteArray* value) {
- GByteArray* _tmp0_;
- GByteArray* _tmp1_;
- GByteArray* _tmp2_;
- guint8* _tmp3_;
- gint _tmp3__length1;
+ GByteArray* _tmp0_ = NULL;
+ GByteArray* _tmp1_ = NULL;
+ GByteArray* _tmp2_ = NULL;
+ guint8* _tmp3_ = NULL;
+ gint _tmp3__length1 = 0;
g_return_if_fail (self != NULL);
_tmp0_ = g_byte_array_new ();
_g_byte_array_free0 (self->priv->_thumbnail);
@@ -384,7 +384,7 @@ void vala_dpap_record_set_thumbnail (ValaDPAPRecord* self, GByteArray* value) {
const gchar* vala_dpap_record_get_comments (ValaDPAPRecord* self) {
const gchar* result;
- const gchar* _tmp0_;
+ const gchar* _tmp0_ = NULL;
g_return_val_if_fail (self != NULL, NULL);
_tmp0_ = self->priv->_comments;
result = _tmp0_;
@@ -393,8 +393,8 @@ const gchar* vala_dpap_record_get_comments (ValaDPAPRecord* self) {
void vala_dpap_record_set_comments (ValaDPAPRecord* self, const gchar* value) {
- const gchar* _tmp0_;
- gchar* _tmp1_;
+ const gchar* _tmp0_ = NULL;
+ gchar* _tmp1_ = NULL;
g_return_if_fail (self != NULL);
_tmp0_ = value;
_tmp1_ = g_strdup (_tmp0_);
@@ -406,7 +406,7 @@ void vala_dpap_record_set_comments (ValaDPAPRecord* self, const gchar* value) {
gint vala_dpap_record_get_large_filesize (ValaDPAPRecord* self) {
gint result;
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_val_if_fail (self != NULL, 0);
_tmp0_ = self->priv->_large_filesize;
result = _tmp0_;
@@ -415,7 +415,7 @@ gint vala_dpap_record_get_large_filesize (ValaDPAPRecord* self) {
void vala_dpap_record_set_large_filesize (ValaDPAPRecord* self, gint value) {
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_if_fail (self != NULL);
_tmp0_ = value;
self->priv->_large_filesize = _tmp0_;
@@ -425,7 +425,7 @@ void vala_dpap_record_set_large_filesize (ValaDPAPRecord* self, gint value) {
gint vala_dpap_record_get_pixel_height (ValaDPAPRecord* self) {
gint result;
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_val_if_fail (self != NULL, 0);
_tmp0_ = self->priv->_pixel_height;
result = _tmp0_;
@@ -434,7 +434,7 @@ gint vala_dpap_record_get_pixel_height (ValaDPAPRecord* self) {
void vala_dpap_record_set_pixel_height (ValaDPAPRecord* self, gint value) {
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_if_fail (self != NULL);
_tmp0_ = value;
self->priv->_pixel_height = _tmp0_;
@@ -444,7 +444,7 @@ void vala_dpap_record_set_pixel_height (ValaDPAPRecord* self, gint value) {
gint vala_dpap_record_get_pixel_width (ValaDPAPRecord* self) {
gint result;
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_val_if_fail (self != NULL, 0);
_tmp0_ = self->priv->_pixel_width;
result = _tmp0_;
@@ -453,7 +453,7 @@ gint vala_dpap_record_get_pixel_width (ValaDPAPRecord* self) {
void vala_dpap_record_set_pixel_width (ValaDPAPRecord* self, gint value) {
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_if_fail (self != NULL);
_tmp0_ = value;
self->priv->_pixel_width = _tmp0_;
@@ -463,7 +463,7 @@ void vala_dpap_record_set_pixel_width (ValaDPAPRecord* self, gint value) {
gint vala_dpap_record_get_rating (ValaDPAPRecord* self) {
gint result;
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_val_if_fail (self != NULL, 0);
_tmp0_ = self->priv->_rating;
result = _tmp0_;
@@ -472,7 +472,7 @@ gint vala_dpap_record_get_rating (ValaDPAPRecord* self) {
void vala_dpap_record_set_rating (ValaDPAPRecord* self, gint value) {
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_if_fail (self != NULL);
_tmp0_ = value;
self->priv->_rating = _tmp0_;
@@ -482,7 +482,7 @@ void vala_dpap_record_set_rating (ValaDPAPRecord* self, gint value) {
gint vala_dpap_record_get_creation_date (ValaDPAPRecord* self) {
gint result;
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_val_if_fail (self != NULL, 0);
_tmp0_ = self->priv->_creation_date;
result = _tmp0_;
@@ -491,7 +491,7 @@ gint vala_dpap_record_get_creation_date (ValaDPAPRecord* self) {
void vala_dpap_record_set_creation_date (ValaDPAPRecord* self, gint value) {
- gint _tmp0_;
+ gint _tmp0_ = 0;
g_return_if_fail (self != NULL);
_tmp0_ = value;
self->priv->_creation_date = _tmp0_;
@@ -521,7 +521,7 @@ static void vala_dpap_record_class_init (ValaDPAPRecordClass * klass) {
static void vala_dpap_record_dmap_record_interface_init (DMAPRecordIface * iface) {
vala_dpap_record_dmap_record_parent_iface = g_type_interface_peek_parent (iface);
- iface->set_from_blob = (DMAPRecord* (*)(DMAPRecord*, GByteArray*))
vala_dpap_record_real_set_from_blob;
+ iface->set_from_blob = (gboolean (*)(DMAPRecord*, GByteArray*)) vala_dpap_record_real_set_from_blob;
iface->to_blob = (GByteArray* (*)(DMAPRecord*)) vala_dpap_record_real_to_blob;
}
@@ -657,7 +657,7 @@ static void _vala_vala_dpap_record_set_property (GObject * object, guint propert
static DMAPRecord* vala_dpap_record_factory_real_create (DMAPRecordFactory* base, void* user_data) {
ValaDPAPRecordFactory * self;
DMAPRecord* result = NULL;
- ValaDPAPRecord* _tmp0_;
+ ValaDPAPRecord* _tmp0_ = NULL;
self = (ValaDPAPRecordFactory*) base;
_tmp0_ = vala_dpap_record_new ();
result = (DMAPRecord*) _tmp0_;
diff --git a/vala/libdmapsharing-3.0.vapi b/vala/libdmapsharing-3.0.vapi
index 1c8afd4..131ba55 100644
--- a/vala/libdmapsharing-3.0.vapi
+++ b/vala/libdmapsharing-3.0.vapi
@@ -81,6 +81,13 @@ namespace DAAP {
public DAAP.DMAPType type;
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class DMAPDbFilterDefinition {
+ public weak string key;
+ public bool negate;
+ public weak string value;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPGstInputStream : GLib.InputStream, GLib.Seekable {
[CCode (cname = "dmap_gst_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
public DMAPGstInputStream (string transcode_mimetype, GLib.InputStream src_stream);
@@ -93,11 +100,27 @@ namespace DAAP {
public DMAPGstMP3InputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public class DMAPGstQtInputStream : DAAP.DMAPGstInputStream, GLib.Seekable {
+ [CCode (cname = "dmap_gst_qt_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
+ public DMAPGstQtInputStream (GLib.InputStream stream);
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPGstWAVInputStream : DAAP.DMAPGstInputStream, GLib.Seekable {
[CCode (cname = "dmap_gst_wav_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
public DMAPGstWAVInputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class DMAPHashContext {
+ [CCode (array_length = false)]
+ public weak uint32[] bits;
+ [CCode (array_length = false)]
+ public weak uint32[] buf;
+ [CCode (array_length = false)]
+ public weak uint[] @in;
+ public int version;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPMdnsBrowser : GLib.Object {
[CCode (cname = "dmap_mdns_browser_new", has_construct_function = false, type =
"DMAPMdnsBrowser*")]
public DMAPMdnsBrowser (DAAP.DMAPMdnsBrowserServiceType type);
@@ -219,13 +242,6 @@ namespace DAAP {
public uint32 size;
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
- [Compact]
- public class FilterDefinition {
- public weak string key;
- public bool negate;
- public weak string value;
- }
- [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class Share : DAAP.DMAPShare {
[CCode (has_construct_function = false)]
public Share (string name, string password, DMAP.Db db, DMAP.ContainerDb container_db, string
transcode_mimetype);
@@ -278,7 +294,7 @@ namespace DAAP {
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public interface DMAPRecord : GLib.Object {
[CCode (cname = "dmap_record_set_from_blob")]
- public abstract unowned DAAP.DMAPRecord set_from_blob (DAAP.DMAPRecord record, GLib.ByteArray
blob);
+ public abstract bool set_from_blob (DAAP.DMAPRecord record, GLib.ByteArray blob);
[CCode (cname = "dmap_record_to_blob")]
public abstract unowned GLib.ByteArray to_blob (DAAP.DMAPRecord record);
}
@@ -526,6 +542,8 @@ namespace DAAP {
[CCode (cheader_filename = "libdmapsharing/dmap.h", has_target = false)]
public delegate unowned string RecordGetValueFunc (DAAP.DMAPRecord record);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public const int DMAP_HASH_SIZE;
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int DMAP_HAVE_UNALIGNED_ACCESS;
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int DMAP_STATUS_OK;
@@ -545,6 +563,14 @@ namespace DAAP {
public static unowned DAAP.DMAPContentCodeDefinition dmap_content_codes (uint number);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_generate")]
public static void dmap_hash_generate (short version_major, uchar[] url, uchar hash_select, uchar[]
@out, int request_id);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_final")]
+ public static void dmap_hash_progressive_final (DAAP.DMAPHashContext context, uint[] digest);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_init")]
+ public static void dmap_hash_progressive_init (DAAP.DMAPHashContext context);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_to_string")]
+ public static void dmap_hash_progressive_to_string (uint digest, string str);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_update")]
+ public static void dmap_hash_progressive_update (DAAP.DMAPHashContext context, uint buffer, uint
length);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_marshal_BOOLEAN__STRING")]
public static void dmap_marshal_BOOLEAN__STRING (GLib.Closure closure, GLib.Value return_value, uint
n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_marshal_STRING__STRING")]
@@ -565,6 +591,8 @@ namespace DAAP {
public static unowned Avahi.Client dmap_mdns_avahi_get_client ();
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_mdns_avahi_set_entry_group")]
public static void dmap_mdns_avahi_set_entry_group (Avahi.EntryGroup group);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_mime_to_format")]
+ public static unowned string dmap_mime_to_format (string transcode_mimetype);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_structure_add")]
public static unowned GLib.Node dmap_structure_add (GLib.Node parent, DAAP.DMAPContentCode cc);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_structure_destroy")]
@@ -683,6 +711,13 @@ namespace DACP {
public DACP.DMAPType type;
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class DMAPDbFilterDefinition {
+ public weak string key;
+ public bool negate;
+ public weak string value;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPGstInputStream : GLib.InputStream, GLib.Seekable {
[CCode (cname = "dmap_gst_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
public DMAPGstInputStream (string transcode_mimetype, GLib.InputStream src_stream);
@@ -695,11 +730,27 @@ namespace DACP {
public DMAPGstMP3InputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public class DMAPGstQtInputStream : DACP.DMAPGstInputStream, GLib.Seekable {
+ [CCode (cname = "dmap_gst_qt_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
+ public DMAPGstQtInputStream (GLib.InputStream stream);
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPGstWAVInputStream : DACP.DMAPGstInputStream, GLib.Seekable {
[CCode (cname = "dmap_gst_wav_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
public DMAPGstWAVInputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class DMAPHashContext {
+ [CCode (array_length = false)]
+ public weak uint32[] bits;
+ [CCode (array_length = false)]
+ public weak uint32[] buf;
+ [CCode (array_length = false)]
+ public weak uint[] @in;
+ public int version;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPMdnsBrowser : GLib.Object {
[CCode (cname = "dmap_mdns_browser_new", has_construct_function = false, type =
"DMAPMdnsBrowser*")]
public DMAPMdnsBrowser (DACP.DMAPMdnsBrowserServiceType type);
@@ -821,13 +872,6 @@ namespace DACP {
public uint32 size;
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
- [Compact]
- public class FilterDefinition {
- public weak string key;
- public bool negate;
- public weak string value;
- }
- [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class Share : DACP.DAAPShare {
[CCode (has_construct_function = false)]
public Share (string library_name, DACP.Player player, DMAP.Db db, DMAP.ContainerDb
container_db);
@@ -902,7 +946,7 @@ namespace DACP {
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public interface DMAPRecord : GLib.Object {
[CCode (cname = "dmap_record_set_from_blob")]
- public abstract unowned DACP.DMAPRecord set_from_blob (DACP.DMAPRecord record, GLib.ByteArray
blob);
+ public abstract bool set_from_blob (DACP.DMAPRecord record, GLib.ByteArray blob);
[CCode (cname = "dmap_record_to_blob")]
public abstract unowned GLib.ByteArray to_blob (DACP.DMAPRecord record);
}
@@ -1165,6 +1209,8 @@ namespace DACP {
[CCode (cheader_filename = "libdmapsharing/dmap.h", has_target = false)]
public delegate unowned string RecordGetValueFunc (DACP.DMAPRecord record);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public const int DMAP_HASH_SIZE;
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int DMAP_HAVE_UNALIGNED_ACCESS;
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int DMAP_STATUS_OK;
@@ -1184,6 +1230,14 @@ namespace DACP {
public static unowned DACP.DMAPContentCodeDefinition dmap_content_codes (uint number);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_generate")]
public static void dmap_hash_generate (short version_major, uchar[] url, uchar hash_select, uchar[]
@out, int request_id);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_final")]
+ public static void dmap_hash_progressive_final (DACP.DMAPHashContext context, uint[] digest);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_init")]
+ public static void dmap_hash_progressive_init (DACP.DMAPHashContext context);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_to_string")]
+ public static void dmap_hash_progressive_to_string (uint digest, string str);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_update")]
+ public static void dmap_hash_progressive_update (DACP.DMAPHashContext context, uint buffer, uint
length);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_marshal_BOOLEAN__STRING")]
public static void dmap_marshal_BOOLEAN__STRING (GLib.Closure closure, GLib.Value return_value, uint
n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_marshal_STRING__STRING")]
@@ -1204,6 +1258,8 @@ namespace DACP {
public static unowned Avahi.Client dmap_mdns_avahi_get_client ();
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_mdns_avahi_set_entry_group")]
public static void dmap_mdns_avahi_set_entry_group (Avahi.EntryGroup group);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_mime_to_format")]
+ public static unowned string dmap_mime_to_format (string transcode_mimetype);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_structure_add")]
public static unowned GLib.Node dmap_structure_add (GLib.Node parent, DACP.DMAPContentCode cc);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_structure_destroy")]
@@ -1299,7 +1355,7 @@ namespace DMAP {
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
[Compact]
- public class FilterDefinition {
+ public class DbFilterDefinition {
public weak string key;
public bool negate;
public weak string value;
@@ -1317,11 +1373,27 @@ namespace DMAP {
public GstMP3InputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public class GstQtInputStream : DMAP.GstInputStream, GLib.Seekable {
+ [CCode (has_construct_function = false, type = "GInputStream*")]
+ public GstQtInputStream (GLib.InputStream stream);
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class GstWAVInputStream : DMAP.GstInputStream, GLib.Seekable {
[CCode (has_construct_function = false, type = "GInputStream*")]
public GstWAVInputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class HashContext {
+ [CCode (array_length = false)]
+ public weak uint32[] bits;
+ [CCode (array_length = false)]
+ public weak uint32[] buf;
+ [CCode (array_length = false)]
+ public weak uint[] @in;
+ public int version;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class MdnsBrowser : GLib.Object {
[CCode (has_construct_function = false)]
public MdnsBrowser (DMAP.MdnsBrowserServiceType type);
@@ -1463,7 +1535,7 @@ namespace DMAP {
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public interface Record : GLib.Object {
- public abstract unowned DMAP.Record set_from_blob (GLib.ByteArray blob);
+ public abstract bool set_from_blob (GLib.ByteArray blob);
public abstract unowned GLib.ByteArray to_blob ();
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
@@ -1703,6 +1775,8 @@ namespace DMAP {
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public delegate void ResponseHandler (DMAP.Connection connection, uint status, GLib.Node structure);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public const int HASH_SIZE;
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int HAVE_UNALIGNED_ACCESS;
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int STATUS_OK;
@@ -1725,6 +1799,14 @@ namespace DMAP {
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public static void hash_generate (short version_major, uchar[] url, uchar hash_select, uchar[] @out,
int request_id);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public static void hash_progressive_final (DMAP.HashContext context, uint[] digest);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public static void hash_progressive_init (DMAP.HashContext context);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public static void hash_progressive_to_string (uint digest, string str);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public static void hash_progressive_update (DMAP.HashContext context, uint buffer, uint length);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public static void marshal_BOOLEAN__STRING (GLib.Closure closure, GLib.Value return_value, uint
n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public static void marshal_STRING__STRING (GLib.Closure closure, GLib.Value return_value, uint
n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
@@ -1744,6 +1826,8 @@ namespace DMAP {
public static unowned Avahi.Client mdns_avahi_get_client ();
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public static void mdns_avahi_set_entry_group (Avahi.EntryGroup group);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public static unowned string mime_to_format (string transcode_mimetype);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "pads_compatible")]
public static bool pads_compatible (Gst.Pad pad1, Gst.Pad pad2);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
@@ -1850,6 +1934,13 @@ namespace DPAP {
public DPAP.DMAPType type;
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class DMAPDbFilterDefinition {
+ public weak string key;
+ public bool negate;
+ public weak string value;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPGstInputStream : GLib.InputStream, GLib.Seekable {
[CCode (cname = "dmap_gst_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
public DMAPGstInputStream (string transcode_mimetype, GLib.InputStream src_stream);
@@ -1862,11 +1953,27 @@ namespace DPAP {
public DMAPGstMP3InputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public class DMAPGstQtInputStream : DPAP.DMAPGstInputStream, GLib.Seekable {
+ [CCode (cname = "dmap_gst_qt_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
+ public DMAPGstQtInputStream (GLib.InputStream stream);
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPGstWAVInputStream : DPAP.DMAPGstInputStream, GLib.Seekable {
[CCode (cname = "dmap_gst_wav_input_stream_new", has_construct_function = false, type =
"GInputStream*")]
public DMAPGstWAVInputStream (GLib.InputStream stream);
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ [Compact]
+ public class DMAPHashContext {
+ [CCode (array_length = false)]
+ public weak uint32[] bits;
+ [CCode (array_length = false)]
+ public weak uint32[] buf;
+ [CCode (array_length = false)]
+ public weak uint[] @in;
+ public int version;
+ }
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class DMAPMdnsBrowser : GLib.Object {
[CCode (cname = "dmap_mdns_browser_new", has_construct_function = false, type =
"DMAPMdnsBrowser*")]
public DMAPMdnsBrowser (DPAP.DMAPMdnsBrowserServiceType type);
@@ -1988,13 +2095,6 @@ namespace DPAP {
public uint32 size;
}
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
- [Compact]
- public class FilterDefinition {
- public weak string key;
- public bool negate;
- public weak string value;
- }
- [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public class Share : DPAP.DMAPShare {
[CCode (has_construct_function = false)]
public Share (string name, string password, void* db, void* container_db, string
transcode_mimetype);
@@ -2047,7 +2147,7 @@ namespace DPAP {
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public interface DMAPRecord : GLib.Object {
[CCode (cname = "dmap_record_set_from_blob")]
- public abstract unowned DPAP.DMAPRecord set_from_blob (DPAP.DMAPRecord record, GLib.ByteArray
blob);
+ public abstract bool set_from_blob (DPAP.DMAPRecord record, GLib.ByteArray blob);
[CCode (cname = "dmap_record_to_blob")]
public abstract unowned GLib.ByteArray to_blob (DPAP.DMAPRecord record);
}
@@ -2293,6 +2393,8 @@ namespace DPAP {
[CCode (cheader_filename = "libdmapsharing/dmap.h", has_target = false)]
public delegate unowned string RecordGetValueFunc (DPAP.DMAPRecord record);
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
+ public const int DMAP_HASH_SIZE;
+ [CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int DMAP_HAVE_UNALIGNED_ACCESS;
[CCode (cheader_filename = "libdmapsharing/dmap.h")]
public const int DMAP_STATUS_OK;
@@ -2312,6 +2414,14 @@ namespace DPAP {
public static unowned DPAP.DMAPContentCodeDefinition dmap_content_codes (uint number);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_generate")]
public static void dmap_hash_generate (short version_major, uchar[] url, uchar hash_select, uchar[]
@out, int request_id);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_final")]
+ public static void dmap_hash_progressive_final (DPAP.DMAPHashContext context, uint[] digest);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_init")]
+ public static void dmap_hash_progressive_init (DPAP.DMAPHashContext context);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_to_string")]
+ public static void dmap_hash_progressive_to_string (uint digest, string str);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_hash_progressive_update")]
+ public static void dmap_hash_progressive_update (DPAP.DMAPHashContext context, uint buffer, uint
length);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_marshal_BOOLEAN__STRING")]
public static void dmap_marshal_BOOLEAN__STRING (GLib.Closure closure, GLib.Value return_value, uint
n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_marshal_STRING__STRING")]
@@ -2332,6 +2442,8 @@ namespace DPAP {
public static unowned Avahi.Client dmap_mdns_avahi_get_client ();
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_mdns_avahi_set_entry_group")]
public static void dmap_mdns_avahi_set_entry_group (Avahi.EntryGroup group);
+ [CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_mime_to_format")]
+ public static unowned string dmap_mime_to_format (string transcode_mimetype);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_structure_add")]
public static unowned GLib.Node dmap_structure_add (GLib.Node parent, DPAP.DMAPContentCode cc);
[CCode (cheader_filename = "libdmapsharing/dmap.h", cname = "dmap_structure_destroy")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]