static VALUE rg_initialize(VALUE self, VALUE hostname, VALUE port, VALUE priority, VALUE weight) { /* TODO: Does this work with boxed? */ /* TODO: hostname should be infected when returned. */ G_INITIALIZE(self, g_srv_target_new(RVAL2CSTR(hostname), RVAL2GUINT16(port), RVAL2GUINT16(priority), RVAL2GUINT16(weight))); return Qnil; }
/** * g_srv_target_copy: * @target: a #GSrvTarget * * Copies @target * * Returns: a copy of @target * * Since: 2.22 */ GSrvTarget * g_srv_target_copy (GSrvTarget *target) { return g_srv_target_new (target->hostname, target->port, target->priority, target->weight); }