Example #1
0
/*
 * AMQ_Connection#silent -> boolean
 */
static VALUE con_get_silent(VALUE self)
{
  amq_connection_cls *const connection_obj=get_amq_connection_cls(self,1);
  if ( amq_client_connection_get_silent(connection_obj->connection))
	return Qtrue;
  else
	return Qfalse;
}
Example #2
0
static VALUE rwire_amq_client_connection_get_silent(VALUE self)
{
	CONNECTION_GET;
	if (!c) {
		rb_raise(eAMQDestroyedError, "Connection has aleady been destroyed");
	}
	return amq_client_connection_get_silent(c) ? Qtrue : Qfalse;
}