Beispiel #1
0
static VALUE rwire_amq_client_session_destroy(VALUE self)
{
    amq_client_session_t *session = NULL;
    Data_Get_Struct(self, amq_client_session_t, session);
    amq_client_session_destroy(&session);
    return Qnil;
}
Beispiel #2
0
void free_amq_session_cls( amq_session_cls *obj) {
  if (obj && obj->session) {
    amq_client_session_destroy (&(obj->session));
    obj->session=0;
  }
  if (obj)
    free(obj);
}
Beispiel #3
0
        inline ~openamq_t ()
        {
            //  Close the channel.
            amq_client_session_destroy (&session);

            //  Close the connection.
            amq_client_connection_destroy (&connection);

            //  Uninitialise system.
            icl_system_terminate ();
        }