Added static bool Filter::isValidFilter(int).
committer: mfx <mfx> 978705885 +0000
This commit is contained in:
@@ -78,6 +78,13 @@ const FilterImp::FilterEntry *FilterImp::getFilter(int id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool Filter::isValidFilter(int filter_id)
|
||||||
|
{
|
||||||
|
const FilterImp::FilterEntry * const fe = FilterImp::getFilter(filter_id);
|
||||||
|
return fe != NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
// high level API
|
// high level API
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ public:
|
|||||||
void verifyUnfilter();
|
void verifyUnfilter();
|
||||||
bool scan(const upx_byte *buf, unsigned buf_len);
|
bool scan(const upx_byte *buf, unsigned buf_len);
|
||||||
|
|
||||||
|
static bool isValidFilter(int filter_id);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Will be set by each call to filter()/unfilter().
|
// Will be set by each call to filter()/unfilter().
|
||||||
// Read-only afterwards.
|
// Read-only afterwards.
|
||||||
|
|||||||
Reference in New Issue
Block a user