Sindbad~EG File Manager
�
��g�$ � �t � d Z ddlZddlZddlZddlmZmZ ddlmZ d� Z d� Z
d� Zd� Zd � Z
d
� Zd� Zd� Zd
� ZdS )z2Internal functions for working with frame-filters.� N)�DAPFrameDecorator�FrameDecorator)�
FrameIteratorc �$ � t | dd� � S )aB Internal worker function to return the frame-filter's priority
from a frame filter object. This is a fail free function as it is
used in sorting and filtering. If a badly implemented frame
filter does not implement the priority attribute, return zero
(otherwise sorting/filtering will fail and prevent other frame
filters from executing).
Arguments:
filter_item: An object conforming to the frame filter
interface.
Returns:
The priority of the frame filter from the "priority"
attribute, or zero.
�priorityr ��getattr��filter_items �./gdb/frames.py�get_priorityr
s � �$ �;�
�A�.�.�.� c � � || _ dS )z�Internal worker function to set the frame-filter's priority.
Arguments:
filter_item: An object conforming to the frame filter
interface.
priority: The priority to assign as an integer.
N)r )r r s r �set_priorityr 0 s � � $�K���r c �$ � t | dd� � S )aD Internal worker function to return a filter's enabled state
from a frame filter object. This is a fail free function as it is
used in sorting and filtering. If a badly implemented frame
filter does not implement the enabled attribute, return False
(otherwise sorting/filtering will fail and prevent other frame
filters from executing).
Arguments:
filter_item: An object conforming to the frame filter
interface.
Returns:
The enabled state of the frame filter from the "enabled"
attribute, or False.
�enabledFr r
s r �get_enabledr <