Commit 9aaed0a0 authored by W. Michael Petullo's avatar W. Michael Petullo

Small changes to fix Vala build

parent 00cf08da
......@@ -21,7 +21,7 @@
#include "test-daap-record-factory.h"
#include "test-daap-record.h"
DMAPRecord *
static DMAPRecord *
test_daap_record_factory_create (DMAPRecordFactory *factory, gpointer user_data)
{
return DMAP_RECORD (test_daap_record_new ());
......
......@@ -51,8 +51,6 @@ GType test_daap_record_factory_get_type (void);
TestDAAPRecordFactory *test_daap_record_factory_new (void);
DMAPRecord *test_daap_record_factory_create (DMAPRecordFactory *factory, gpointer user_data);
#endif /* __TEST_DAAP_RECORD_FACTORY */
G_END_DECLS
......@@ -217,7 +217,8 @@ test_daap_record_get_property (GObject *object,
}
}
GInputStream *test_daap_record_read (DAAPRecord *record, GError **error)
static GInputStream *
test_daap_record_read (DAAPRecord *record, GError **error)
{
GFile *file;
GInputStream *stream;
......
......@@ -57,8 +57,6 @@ GType test_daap_record_get_type (void);
TestDAAPRecord *test_daap_record_new (void);
GInputStream *test_daap_record_read (DAAPRecord *record, GError **err);
#endif /* __TEST_DAAP_RECORD */
G_END_DECLS
......@@ -21,7 +21,7 @@
#include "test-dpap-record-factory.h"
#include "test-dpap-record.h"
DMAPRecord *
static DMAPRecord *
test_dpap_record_factory_create (DMAPRecordFactory *factory, gpointer user_data)
{
return DMAP_RECORD (test_dpap_record_new ());
......
......@@ -51,8 +51,6 @@ GType test_dpap_record_factory_get_type (void);
TestDPAPRecordFactory *test_dpap_record_factory_new (void);
DMAPRecord *test_dpap_record_factory_create (DMAPRecordFactory *factory, gpointer user_data);
#endif /* __TEST_DPAP_RECORD_FACTORY */
G_END_DECLS
......@@ -144,7 +144,8 @@ test_dpap_record_get_property (GObject *object,
}
}
GInputStream *test_dpap_record_read (DPAPRecord *record, GError **error)
static GInputStream *
test_dpap_record_read (DPAPRecord *record, GError **error)
{
GFile *file;
GInputStream *stream;
......
......@@ -57,9 +57,6 @@ GType test_dpap_record_get_type (void);
TestDPAPRecord *test_dpap_record_new (void);
GInputStream *test_dpap_record_read (DPAPRecord *record,
GError **err);
#endif /* __TEST_DPAP_RECORD */
G_END_DECLS
/* dacplisten.c generated by valac 0.27.2, the Vala compiler
/* dacplisten.c generated by valac 0.48.6, the Vala compiler
* generated from dacplisten.vala, do not modify */
/* FILE: dacplisten.vala -- Listen to DACP remotes
......@@ -23,14 +23,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <glib.h>
#include <glib-object.h>
#include <libdmapsharing/dmap.h>
#include <stdio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#define TYPE_VALA_DACP_PLAYER (vala_dacp_player_get_type ())
#define VALA_DACP_PLAYER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VALA_DACP_PLAYER, ValaDACPPlayer))
#define VALA_DACP_PLAYER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VALA_DACP_PLAYER, ValaDACPPlayerClass))
......@@ -41,6 +40,11 @@
typedef struct _ValaDACPPlayer ValaDACPPlayer;
typedef struct _ValaDACPPlayerClass ValaDACPPlayerClass;
typedef struct _ValaDACPPlayerPrivate ValaDACPPlayerPrivate;
enum {
VALA_DACP_PLAYER_0_PROPERTY,
VALA_DACP_PLAYER_NUM_PROPERTIES
};
static GParamSpec* vala_dacp_player_properties[VALA_DACP_PLAYER_NUM_PROPERTIES];
#define TYPE_DACP_LISTENER (dacp_listener_get_type ())
#define DACP_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DACP_LISTENER, DACPListener))
......@@ -52,6 +56,11 @@ typedef struct _ValaDACPPlayerPrivate ValaDACPPlayerPrivate;
typedef struct _DACPListener DACPListener;
typedef struct _DACPListenerClass DACPListenerClass;
typedef struct _DACPListenerPrivate DACPListenerPrivate;
enum {
DACP_LISTENER_0_PROPERTY,
DACP_LISTENER_NUM_PROPERTIES
};
static GParamSpec* dacp_listener_properties[DACP_LISTENER_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define TYPE_VALA_DMAP_DB (vala_dmap_db_get_type ())
......@@ -100,50 +109,64 @@ struct _DACPListenerPrivate {
DACPShare* share;
};
static gpointer vala_dacp_player_parent_class = NULL;
static DACPPlayerIface* vala_dacp_player_dacp_player_parent_iface = NULL;
static DACPPlayerIface * vala_dacp_player_dacp_player_parent_iface = NULL;
static gint DACPListener_private_offset;
static gpointer dacp_listener_parent_class = NULL;
GType vala_dacp_player_get_type (void) G_GNUC_CONST;
enum {
VALA_DACP_PLAYER_DUMMY_PROPERTY
};
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ValaDACPPlayer, g_object_unref)
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 height, int* result_length1);
static guchar* vala_dacp_player_real_now_playing_artwork (DACPPlayer* base,
guint width,
guint height,
gint* result_length1);
static void vala_dacp_player_real_play_pause (DACPPlayer* base);
static void vala_dacp_player_real_pause (DACPPlayer* base);
static void vala_dacp_player_real_next_item (DACPPlayer* base);
static void vala_dacp_player_real_prev_item (DACPPlayer* base);
static void vala_dacp_player_real_cue_clear (DACPPlayer* base);
static void vala_dacp_player_real_cue_play (DACPPlayer* base, GList* records, guint index);
static void vala_dacp_player_real_cue_play (DACPPlayer* base,
GList* records,
guint index);
ValaDACPPlayer* vala_dacp_player_new (void);
ValaDACPPlayer* vala_dacp_player_construct (GType object_type);
static GType vala_dacp_player_get_type_once (void);
GType dacp_listener_get_type (void) G_GNUC_CONST;
#define DACP_LISTENER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DACP_LISTENER, DACPListenerPrivate))
enum {
DACP_LISTENER_DUMMY_PROPERTY
};
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DACPListener, g_object_unref)
DACPListener* dacp_listener_new (void);
DACPListener* dacp_listener_construct (GType object_type);
ValaDMAPDb* vala_dmap_db_new (void);
ValaDMAPDb* vala_dmap_db_construct (GType object_type);
GType vala_dmap_db_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ValaDMAPDb, g_object_unref)
ValaDMAPContainerDb* vala_dmap_container_db_new (void);
ValaDMAPContainerDb* vala_dmap_container_db_construct (GType object_type);
GType vala_dmap_container_db_get_type (void) G_GNUC_CONST;
static void __lambda4_ (DACPListener* self, const gchar* service_name, const gchar* display_name);
static void ___lambda4__dacp_share_remote_found (DACPShare* _sender, const gchar* service_name, const gchar* remote_name, gpointer self);
static void __lambda5_ (DACPListener* self, const gchar* guid);
static void ___lambda5__dacp_share_add_guid (DACPShare* _sender, const gchar* guid, gpointer self);
static void dacp_listener_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);
static DAAPRecord* vala_dacp_player_real_now_playing_record (DACPPlayer* base) {
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ValaDMAPContainerDb, g_object_unref)
static void __lambda4_ (DACPListener* self,
const gchar* service_name,
const gchar* display_name);
static void ___lambda4__dacp_share_remote_found (DACPShare* _sender,
const gchar* service_name,
const gchar* remote_name,
gpointer self);
static void __lambda5_ (DACPListener* self,
const gchar* guid);
static void ___lambda5__dacp_share_add_guid (DACPShare* _sender,
const gchar* guid,
gpointer self);
static void dacp_listener_finalize (GObject * obj);
static GType dacp_listener_get_type_once (void);
gint _vala_main (gchar** args,
gint args_length1);
static DAAPRecord*
vala_dacp_player_real_now_playing_record (DACPPlayer* base)
{
ValaDACPPlayer * self;
FILE* _tmp0_;
DAAPRecord* result = NULL;
FILE* _tmp0_ = NULL;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Now playing record request received\n");
......@@ -151,13 +174,17 @@ static DAAPRecord* vala_dacp_player_real_now_playing_record (DACPPlayer* base) {
return result;
}
static guchar* vala_dacp_player_real_now_playing_artwork (DACPPlayer* base, guint width, guint height, int* result_length1) {
static guchar*
vala_dacp_player_real_now_playing_artwork (DACPPlayer* base,
guint width,
guint height,
gint* result_length1)
{
ValaDACPPlayer * self;
FILE* _tmp0_;
guchar* _tmp1_;
gint _tmp1__length1;
guchar* result = NULL;
FILE* _tmp0_ = NULL;
guchar* _tmp1_ = NULL;
gint _tmp1__length1 = 0;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Now playing artwork request received\n");
......@@ -170,152 +197,192 @@ static guchar* vala_dacp_player_real_now_playing_artwork (DACPPlayer* base, guin
return result;
}
static void vala_dacp_player_real_play_pause (DACPPlayer* base) {
static void
vala_dacp_player_real_play_pause (DACPPlayer* base)
{
ValaDACPPlayer * self;
FILE* _tmp0_ = NULL;
FILE* _tmp0_;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Play/pause request received\n");
}
static void vala_dacp_player_real_pause (DACPPlayer* base) {
static void
vala_dacp_player_real_pause (DACPPlayer* base)
{
ValaDACPPlayer * self;
FILE* _tmp0_ = NULL;
FILE* _tmp0_;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Pause request received\n");
}
static void vala_dacp_player_real_next_item (DACPPlayer* base) {
static void
vala_dacp_player_real_next_item (DACPPlayer* base)
{
ValaDACPPlayer * self;
FILE* _tmp0_ = NULL;
FILE* _tmp0_;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Next item request received\n");
}
static void vala_dacp_player_real_prev_item (DACPPlayer* base) {
static void
vala_dacp_player_real_prev_item (DACPPlayer* base)
{
ValaDACPPlayer * self;
FILE* _tmp0_ = NULL;
FILE* _tmp0_;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Previous item request received\n");
}
static void vala_dacp_player_real_cue_clear (DACPPlayer* base) {
static void
vala_dacp_player_real_cue_clear (DACPPlayer* base)
{
ValaDACPPlayer * self;
FILE* _tmp0_ = NULL;
FILE* _tmp0_;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Cue clear request received\n");
}
static void vala_dacp_player_real_cue_play (DACPPlayer* base, GList* records, guint index) {
static void
vala_dacp_player_real_cue_play (DACPPlayer* base,
GList* records,
guint index)
{
ValaDACPPlayer * self;
FILE* _tmp0_ = NULL;
FILE* _tmp0_;
self = (ValaDACPPlayer*) base;
_tmp0_ = stdout;
fprintf (_tmp0_, "Cue play request received\n");
}
ValaDACPPlayer* vala_dacp_player_construct (GType object_type) {
ValaDACPPlayer*
vala_dacp_player_construct (GType object_type)
{
ValaDACPPlayer * self = NULL;
self = (ValaDACPPlayer*) g_object_new (object_type, NULL);
return self;
}
ValaDACPPlayer* vala_dacp_player_new (void) {
ValaDACPPlayer*
vala_dacp_player_new (void)
{
return vala_dacp_player_construct (TYPE_VALA_DACP_PLAYER);
}
static void vala_dacp_player_class_init (ValaDACPPlayerClass * klass) {
static void
vala_dacp_player_class_init (ValaDACPPlayerClass * klass,
gpointer klass_data)
{
vala_dacp_player_parent_class = g_type_class_peek_parent (klass);
}
static void vala_dacp_player_dacp_player_interface_init (DACPPlayerIface * iface) {
static void
vala_dacp_player_dacp_player_interface_init (DACPPlayerIface * iface,
gpointer iface_data)
{
vala_dacp_player_dacp_player_parent_iface = g_type_interface_peek_parent (iface);
iface->now_playing_record = (DAAPRecord* (*)(DACPPlayer*)) vala_dacp_player_real_now_playing_record;
iface->now_playing_artwork = (guchar* (*)(DACPPlayer*, guint, guint, int*)) vala_dacp_player_real_now_playing_artwork;
iface->play_pause = (void (*)(DACPPlayer*)) vala_dacp_player_real_play_pause;
iface->pause = (void (*)(DACPPlayer*)) vala_dacp_player_real_pause;
iface->next_item = (void (*)(DACPPlayer*)) vala_dacp_player_real_next_item;
iface->prev_item = (void (*)(DACPPlayer*)) vala_dacp_player_real_prev_item;
iface->cue_clear = (void (*)(DACPPlayer*)) vala_dacp_player_real_cue_clear;
iface->cue_play = (void (*)(DACPPlayer*, GList*, guint)) vala_dacp_player_real_cue_play;
iface->now_playing_record = (DAAPRecord* (*) (DACPPlayer*)) vala_dacp_player_real_now_playing_record;
iface->now_playing_artwork = (guchar* (*) (DACPPlayer*, guint, guint, gint*)) vala_dacp_player_real_now_playing_artwork;
iface->play_pause = (void (*) (DACPPlayer*)) vala_dacp_player_real_play_pause;
iface->pause = (void (*) (DACPPlayer*)) vala_dacp_player_real_pause;
iface->next_item = (void (*) (DACPPlayer*)) vala_dacp_player_real_next_item;
iface->prev_item = (void (*) (DACPPlayer*)) vala_dacp_player_real_prev_item;
iface->cue_clear = (void (*) (DACPPlayer*)) vala_dacp_player_real_cue_clear;
iface->cue_play = (void (*) (DACPPlayer*, GList*, guint)) vala_dacp_player_real_cue_play;
}
static void vala_dacp_player_instance_init (ValaDACPPlayer * self) {
static void
vala_dacp_player_instance_init (ValaDACPPlayer * self,
gpointer klass)
{
}
static GType
vala_dacp_player_get_type_once (void)
{
static const GTypeInfo g_define_type_info = { sizeof (ValaDACPPlayerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_dacp_player_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaDACPPlayer), 0, (GInstanceInitFunc) vala_dacp_player_instance_init, NULL };
static const GInterfaceInfo dacp_player_info = { (GInterfaceInitFunc) vala_dacp_player_dacp_player_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
GType vala_dacp_player_type_id;
vala_dacp_player_type_id = g_type_register_static (G_TYPE_OBJECT, "ValaDACPPlayer", &g_define_type_info, 0);
g_type_add_interface_static (vala_dacp_player_type_id, DACP_TYPE_PLAYER, &dacp_player_info);
return vala_dacp_player_type_id;
}
GType vala_dacp_player_get_type (void) {
GType
vala_dacp_player_get_type (void)
{
static volatile gsize vala_dacp_player_type_id__volatile = 0;
if (g_once_init_enter (&vala_dacp_player_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (ValaDACPPlayerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_dacp_player_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaDACPPlayer), 0, (GInstanceInitFunc) vala_dacp_player_instance_init, NULL };
static const GInterfaceInfo dacp_player_info = { (GInterfaceInitFunc) vala_dacp_player_dacp_player_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
GType vala_dacp_player_type_id;
vala_dacp_player_type_id = g_type_register_static (G_TYPE_OBJECT, "ValaDACPPlayer", &g_define_type_info, 0);
g_type_add_interface_static (vala_dacp_player_type_id, DACP_TYPE_PLAYER, &dacp_player_info);
vala_dacp_player_type_id = vala_dacp_player_get_type_once ();
g_once_init_leave (&vala_dacp_player_type_id__volatile, vala_dacp_player_type_id);
}
return vala_dacp_player_type_id__volatile;
}
static inline gpointer
dacp_listener_get_instance_private (DACPListener* self)
{
return G_STRUCT_MEMBER_P (self, DACPListener_private_offset);
}
static void __lambda4_ (DACPListener* self, const gchar* service_name, const gchar* display_name) {
FILE* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
static void
__lambda4_ (DACPListener* self,
const gchar* service_name,
const gchar* display_name)
{
FILE* _tmp0_;
g_return_if_fail (service_name != NULL);
g_return_if_fail (display_name != NULL);
_tmp0_ = stdout;
_tmp1_ = service_name;
_tmp2_ = display_name;
fprintf (_tmp0_, "Found remote: %s, %s\n", _tmp1_, _tmp2_);
fprintf (_tmp0_, "Found remote: %s, %s\n", service_name, display_name);
}
static void ___lambda4__dacp_share_remote_found (DACPShare* _sender, const gchar* service_name, const gchar* remote_name, gpointer self) {
static void
___lambda4__dacp_share_remote_found (DACPShare* _sender,
const gchar* service_name,
const gchar* remote_name,
gpointer self)
{
__lambda4_ ((DACPListener*) self, service_name, remote_name);
}
static void __lambda5_ (DACPListener* self, const gchar* guid) {
FILE* _tmp0_ = NULL;
static void
__lambda5_ (DACPListener* self,
const gchar* guid)
{
FILE* _tmp0_;
g_return_if_fail (guid != NULL);
_tmp0_ = stdout;
fprintf (_tmp0_, "Add GUID request received\n");
}
static void ___lambda5__dacp_share_add_guid (DACPShare* _sender, const gchar* guid, gpointer self) {
static void
___lambda5__dacp_share_add_guid (DACPShare* _sender,
const gchar* guid,
gpointer self)
{
__lambda5_ ((DACPListener*) self, guid);
}
DACPListener* dacp_listener_construct (GType object_type) {
DACPListener*
dacp_listener_construct (GType object_type)
{
DACPListener * self = NULL;
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;
ValaDMAPDb* _tmp0_;
ValaDMAPContainerDb* _tmp1_;
ValaDACPPlayer* _tmp2_;
DACPPlayer* _tmp3_;
DMAPDb* _tmp4_;
DMAPContainerDb* _tmp5_;
DACPShare* _tmp6_;
DACPShare* _tmp7_;
DACPShare* _tmp8_;
DACPShare* _tmp9_;
self = (DACPListener*) g_object_new (object_type, NULL);
_tmp0_ = vala_dmap_db_new ();
_g_object_unref0 (self->priv->db);
......@@ -341,25 +408,31 @@ DACPListener* dacp_listener_construct (GType object_type) {
return self;
}
DACPListener* dacp_listener_new (void) {
DACPListener*
dacp_listener_new (void)
{
return dacp_listener_construct (TYPE_DACP_LISTENER);
}
static void dacp_listener_class_init (DACPListenerClass * klass) {
static void
dacp_listener_class_init (DACPListenerClass * klass,
gpointer klass_data)
{
dacp_listener_parent_class = g_type_class_peek_parent (klass);
g_type_class_add_private (klass, sizeof (DACPListenerPrivate));
g_type_class_adjust_private_offset (klass, &DACPListener_private_offset);
G_OBJECT_CLASS (klass)->finalize = dacp_listener_finalize;
}
static void dacp_listener_instance_init (DACPListener * self) {
self->priv = DACP_LISTENER_GET_PRIVATE (self);
static void
dacp_listener_instance_init (DACPListener * self,
gpointer klass)
{
self->priv = dacp_listener_get_instance_private (self);
}
static void dacp_listener_finalize (GObject* obj) {
static void
dacp_listener_finalize (GObject * obj)
{
DACPListener * self;
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DACP_LISTENER, DACPListener);
_g_object_unref0 (self->priv->db);
......@@ -369,25 +442,37 @@ static void dacp_listener_finalize (GObject* obj) {
G_OBJECT_CLASS (dacp_listener_parent_class)->finalize (obj);
}
static GType
dacp_listener_get_type_once (void)
{
static const GTypeInfo g_define_type_info = { sizeof (DACPListenerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dacp_listener_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DACPListener), 0, (GInstanceInitFunc) dacp_listener_instance_init, NULL };
GType dacp_listener_type_id;
dacp_listener_type_id = g_type_register_static (G_TYPE_OBJECT, "DACPListener", &g_define_type_info, 0);
DACPListener_private_offset = g_type_add_instance_private (dacp_listener_type_id, sizeof (DACPListenerPrivate));
return dacp_listener_type_id;
}
GType dacp_listener_get_type (void) {
GType
dacp_listener_get_type (void)
{
static volatile gsize dacp_listener_type_id__volatile = 0;
if (g_once_init_enter (&dacp_listener_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (DACPListenerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dacp_listener_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DACPListener), 0, (GInstanceInitFunc) dacp_listener_instance_init, NULL };
GType dacp_listener_type_id;
dacp_listener_type_id = g_type_register_static (G_TYPE_OBJECT, "DACPListener", &g_define_type_info, 0);
dacp_listener_type_id = dacp_listener_get_type_once ();
g_once_init_leave (&dacp_listener_type_id__volatile, dacp_listener_type_id);
}
return dacp_listener_type_id__volatile;
}
gint _vala_main (gchar** args, int args_length1) {
gint result = 0;
gint
_vala_main (gchar** args,
gint args_length1)
{
GMainLoop* loop = NULL;
GMainLoop* _tmp0_ = NULL;
GMainLoop* _tmp0_;
DACPListener* dacplistener = NULL;
DACPListener* _tmp1_ = NULL;
DACPListener* _tmp1_;
gint result = 0;
_tmp0_ = g_main_loop_new (NULL, FALSE);
loop = _tmp0_;
_tmp1_ = dacp_listener_new ();
......@@ -399,13 +484,10 @@ gint _vala_main (gchar** args, int args_length1) {
return result;
}
int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
g_type_init ();
#endif
int
main (int argc,
char ** argv)
{
return _vala_main (argv, argc);
}
This diff is collapsed.
/* dmapserve.c generated by valac 0.27.2, the Vala compiler
/* dmapserve.c generated by valac 0.48.6, the Vala compiler
* generated from dmapserve.vala, do not modify */
/* FILE: dmapserve.vala -- Serve media using DMAP
......@@ -23,14 +23,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <glib.h>
#include <glib-object.h>
#include <libdmapsharing/dmap.h>
#include <glib.h>
#include <gobject/gvaluecollector.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <gobject/gvaluecollector.h>
#define TYPE_DPAP_SERVE (dpap_serve_get_type ())
#define DPAP_SERVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DPAP_SERVE, DPAPServe))
......@@ -99,48 +98,72 @@ struct _ParamSpecDPAPServe {
GParamSpec parent_instance;
};
static gint DPAPServe_private_offset;
static gpointer dpap_serve_parent_class = NULL;
gpointer dpap_serve_ref (gpointer instance);
void dpap_serve_unref (gpointer instance);
GParamSpec* param_spec_dpap_serve (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_dpap_serve (GValue* value, gpointer v_object);
void value_take_dpap_serve (GValue* value, gpointer v_object);
GParamSpec* param_spec_dpap_serve (const gchar* name,
const gchar* nick,
const gchar* blurb,
GType object_type,
GParamFlags flags);