1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
4 //---------------------------------------------------------------------
7 Mime sniffer rule declarations
9 #ifndef _SNIFFER_RULE_H
10 #define _SNIFFER_RULE_H
12 #include <SupportDefs.h>
14 #include <sys/types.h>
25 /*! \brief A priority and a list of expressions to be used for sniffing out the
26 type of an untyped file.
33 status_t
InitCheck() const;
34 double Priority() const;
35 bool Sniff(BPositionIO
*data
) const;
36 ssize_t
BytesNeeded() const;
41 void SetTo(double priority
, std::vector
<DisjList
*>* list
);
44 std::vector
<DisjList
*> *fConjList
; // A list of DisjLists to be ANDed
47 }; // namespace Sniffer
48 }; // namespace Storage
49 }; // namespace BPrivate
51 #endif // _SNIFFER_RULE_H