High: core: Internal tls api improvements for reuse with future LRMD tls backend.
gio_poll_destroy(gpointer data) 
{
    /* adaptor->source is valid but about to be destroyed (ref_count == 0) in gmain.c
     * adaptor->channel will still have ref_count > 0... should be == 1
     */
    struct gio_to_qb_poll *adaptor = (struct gio_to_qb_poll *)data;

    crm_trace("Destroying adaptor %p channel %p (ref=%d)", adaptor, adaptor->channel, gio_adapter_refcount(adaptor));
    adaptor->is_used = QB_FALSE;
    adaptor->channel = NULL;
    adaptor->source = 0;
}

gio_poll_destroy(gpointer data) 
{
    /* adaptor->source is valid but about to be destroyed (ref_count == 0) in gmain.c
     * adaptor->channel will still have ref_count > 0... should be == 1
     */
    struct gio_to_qb_poll *adaptor = (struct gio_to_qb_poll *)data;

    crm_trace("Destroying adaptor %p channel %p (ref=%d)", adaptor, adaptor->channel, gio_adapter_refcount(adaptor));
    adaptor->is_used = QB_FALSE;
    adaptor->channel = NULL;
    adaptor->source = 0;
}
