All pastes #128314 Raw Edit

Something

public text v1 · immutable
#128314 ·published 2006-08-12 22:03 UTC
rendered paste body
class Gmpc:Connection from G:Object{
	private MpdObj *mi ={ NULL};
	

	signal last NONE (POINTER, INT)
	void
	connection_changed(self, MpdObj *mi,int connect)
	{
		printf("Connection changed: %i\n", connect);
	} 

	void 
	mpd_connection_changed(MpdObj *mi, int connect,GmpcConnection *self)
	{
		gmpc_connection_connection_changed(self, mi, connect);
	}

	public GObject *
	new(MpdObj *mi)
	{
		GmpcConnection *gc = NULL;
		g_assert(mi!=NULL);
		gc = GET_NEW;
		gc->_priv->mi = mi;
		mpd_signal_connect_connection_changed(gc->_priv->mi, mpd_connection_changed, gc);
		return (GObject *)GET_NEW;
	}
}