get_hash_for_entry_type (GSListener         *listener,
                         int                 entry_type)
{
        GHashTable *hash;

        switch (entry_type) {
        case REF_ENTRY_TYPE_INHIBIT:
                hash = listener->priv->inhibitors;
                break;
        case REF_ENTRY_TYPE_THROTTLE:
                hash = listener->priv->throttlers;
                break;
        default:
                g_assert_not_reached ();
                break;
        }

        return hash;
}
get_hash_for_entry_type (GSListener         *listener,
                         int                 entry_type)
{
        GHashTable *hash;

        switch (entry_type) {
        case REF_ENTRY_TYPE_INHIBIT:
                hash = listener->priv->inhibitors;
                break;
        case REF_ENTRY_TYPE_THROTTLE:
                hash = listener->priv->throttlers;
                break;
        default:
                g_assert_not_reached ();
                break;
        }

        return hash;
}