Storage Kit: Move most MIME sniffer headers into src/.
There's no reason to keep these in the private headers directory that I can see.
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/DisjList.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/Err.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/Parser.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/Pattern.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/PatternList.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/RPattern.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/RPatternList.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/Range.h>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
#include <../../../private/storage/sniffer/Rule.h>
|
|
||||||
@@ -14,8 +14,6 @@
|
|||||||
#include <Bitmap.h>
|
#include <Bitmap.h>
|
||||||
#include <mime/database_support.h>
|
#include <mime/database_support.h>
|
||||||
#include <mime/DatabaseLocation.h>
|
#include <mime/DatabaseLocation.h>
|
||||||
#include <sniffer/Rule.h>
|
|
||||||
#include <sniffer/Parser.h>
|
|
||||||
|
|
||||||
#include <RegistrarDefs.h>
|
#include <RegistrarDefs.h>
|
||||||
#include <RosterPrivate.h>
|
#include <RosterPrivate.h>
|
||||||
@@ -25,6 +23,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
|
#include "sniffer/Rule.h"
|
||||||
|
#include "sniffer/Parser.h"
|
||||||
|
|
||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|||||||
@@ -25,12 +25,13 @@
|
|||||||
#include <mime/DatabaseDirectory.h>
|
#include <mime/DatabaseDirectory.h>
|
||||||
#include <mime/DatabaseLocation.h>
|
#include <mime/DatabaseLocation.h>
|
||||||
#include <mime/MimeSniffer.h>
|
#include <mime/MimeSniffer.h>
|
||||||
#include <sniffer/Parser.h>
|
|
||||||
#include <sniffer/Rule.h>
|
|
||||||
#include <StorageDefs.h>
|
#include <StorageDefs.h>
|
||||||
#include <storage_support.h>
|
#include <storage_support.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
|
#include "../sniffer/Parser.h"
|
||||||
|
#include "../sniffer/Rule.h"
|
||||||
|
|
||||||
|
|
||||||
#define DBG(x) x
|
#define DBG(x) x
|
||||||
//#define DBG(x)
|
//#define DBG(x)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include "sniffer/CharStream.h"
|
#include <sniffer/CharStream.h>
|
||||||
|
#include "Err.h"
|
||||||
#include <sniffer/Err.h>
|
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
MIME sniffer Disjunction List class implementation
|
MIME sniffer Disjunction List class implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/DisjList.h>
|
#include "DisjList.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,11 @@
|
|||||||
MIME sniffer Error class implementation
|
MIME sniffer Error class implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
MIME sniffer rule parser implementation
|
MIME sniffer rule parser implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Parser.h>
|
#include "Parser.h"
|
||||||
#include <sniffer/Pattern.h>
|
#include "Pattern.h"
|
||||||
#include <sniffer/PatternList.h>
|
#include "PatternList.h"
|
||||||
#include <sniffer/Range.h>
|
#include "Range.h"
|
||||||
#include <sniffer/RPattern.h>
|
#include "RPattern.h"
|
||||||
#include <sniffer/RPatternList.h>
|
#include "RPatternList.h"
|
||||||
#include <sniffer/Rule.h>
|
#include "Rule.h"
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -11,13 +11,14 @@
|
|||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
#include <sniffer/CharStream.h>
|
#include <sniffer/CharStream.h>
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/Range.h>
|
|
||||||
#include <sniffer/Rule.h>
|
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "Range.h"
|
||||||
|
#include "Rule.h"
|
||||||
|
|
||||||
class BString;
|
class BString;
|
||||||
|
|
||||||
//! MIME Sniffer related classes
|
//! MIME Sniffer related classes
|
||||||
@@ -7,14 +7,15 @@
|
|||||||
MIME sniffer pattern implementation
|
MIME sniffer pattern implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/Pattern.h>
|
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <stdio.h> // for SEEK_* defines
|
#include <stdio.h> // for SEEK_* defines
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
#include <AutoDeleter.h>
|
#include <AutoDeleter.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "Pattern.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
Pattern::Pattern(const std::string &string, const std::string &mask)
|
Pattern::Pattern(const std::string &string, const std::string &mask)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sniffer/Range.h>
|
#include "Range.h"
|
||||||
|
|
||||||
class BPositionIO;
|
class BPositionIO;
|
||||||
|
|
||||||
@@ -7,12 +7,13 @@
|
|||||||
MIME sniffer pattern list implementation
|
MIME sniffer pattern list implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/Pattern.h>
|
|
||||||
#include <sniffer/PatternList.h>
|
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "Pattern.h"
|
||||||
|
#include "PatternList.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
PatternList::PatternList(Range range)
|
PatternList::PatternList(Range range)
|
||||||
|
|||||||
+3
-2
@@ -9,10 +9,11 @@
|
|||||||
#ifndef _SNIFFER_PATTERN_LIST_H
|
#ifndef _SNIFFER_PATTERN_LIST_H
|
||||||
#define _SNIFFER_PATTERN_LIST_H
|
#define _SNIFFER_PATTERN_LIST_H
|
||||||
|
|
||||||
#include <sniffer/DisjList.h>
|
|
||||||
#include <sniffer/Range.h>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "DisjList.h"
|
||||||
|
#include "Range.h"
|
||||||
|
|
||||||
class BPositionIO;
|
class BPositionIO;
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
@@ -7,12 +7,13 @@
|
|||||||
MIME sniffer rpattern implementation
|
MIME sniffer rpattern implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/Pattern.h>
|
|
||||||
#include <sniffer/Range.h>
|
|
||||||
#include <sniffer/RPattern.h>
|
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "Pattern.h"
|
||||||
|
#include "Range.h"
|
||||||
|
#include "RPattern.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
RPattern::RPattern(Range range, Pattern *pattern)
|
RPattern::RPattern(Range range, Pattern *pattern)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef _SNIFFER_R_PATTERN_H
|
#ifndef _SNIFFER_R_PATTERN_H
|
||||||
#define _SNIFFER_R_PATTERN_H
|
#define _SNIFFER_R_PATTERN_H
|
||||||
|
|
||||||
#include <sniffer/Range.h>
|
#include "Range.h"
|
||||||
|
|
||||||
class BPositionIO;
|
class BPositionIO;
|
||||||
|
|
||||||
@@ -7,12 +7,13 @@
|
|||||||
MIME sniffer rpattern list implementation
|
MIME sniffer rpattern list implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/RPattern.h>
|
|
||||||
#include <sniffer/RPatternList.h>
|
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "RPattern.h"
|
||||||
|
#include "RPatternList.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
RPatternList::RPatternList()
|
RPatternList::RPatternList()
|
||||||
|
|||||||
+2
-1
@@ -9,9 +9,10 @@
|
|||||||
#ifndef _SNIFFER_R_PATTERN_LIST_H
|
#ifndef _SNIFFER_R_PATTERN_LIST_H
|
||||||
#define _SNIFFER_R_PATTERN_LIST_H
|
#define _SNIFFER_R_PATTERN_LIST_H
|
||||||
|
|
||||||
#include <sniffer/DisjList.h>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "DisjList.h"
|
||||||
|
|
||||||
class BPositionIO;
|
class BPositionIO;
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
@@ -7,11 +7,12 @@
|
|||||||
MIME sniffer range implementation
|
MIME sniffer range implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/Range.h>
|
|
||||||
#include <sniffer/Parser.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "Range.h"
|
||||||
|
#include "Parser.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
Range::Range(int32 start, int32 end)
|
Range::Range(int32 start, int32 end)
|
||||||
|
|||||||
@@ -7,12 +7,13 @@
|
|||||||
MIME sniffer rule implementation
|
MIME sniffer rule implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <sniffer/DisjList.h>
|
|
||||||
#include <sniffer/Rule.h>
|
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "Err.h"
|
||||||
|
#include "DisjList.h"
|
||||||
|
#include "Rule.h"
|
||||||
|
|
||||||
using namespace BPrivate::Storage::Sniffer;
|
using namespace BPrivate::Storage::Sniffer;
|
||||||
|
|
||||||
/*! \brief Creates an unitialized Sniffer::Rule object. To initialize it, you
|
/*! \brief Creates an unitialized Sniffer::Rule object. To initialize it, you
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
#include "RosterSettingsCharStream.h"
|
#include "RosterSettingsCharStream.h"
|
||||||
|
|
||||||
#include <sniffer/Err.h>
|
|
||||||
#include <StorageDefs.h>
|
#include <StorageDefs.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ SubDir HAIKU_TOP src tests kits storage ;
|
|||||||
AddSubDirSupportedPlatforms libbe_test ;
|
AddSubDirSupportedPlatforms libbe_test ;
|
||||||
|
|
||||||
UsePrivateHeaders storage ;
|
UsePrivateHeaders storage ;
|
||||||
|
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits storage ] ;
|
||||||
|
|
||||||
UnitTestLib libstoragetest.so
|
UnitTestLib libstoragetest.so
|
||||||
: StorageKitTestAddon.cpp
|
: StorageKitTestAddon.cpp
|
||||||
|
|||||||
@@ -5,16 +5,17 @@
|
|||||||
#include <cppunit/Test.h>
|
#include <cppunit/Test.h>
|
||||||
#include <cppunit/TestSuite.h>
|
#include <cppunit/TestSuite.h>
|
||||||
#include <cppunit/TestCaller.h>
|
#include <cppunit/TestCaller.h>
|
||||||
#include <sniffer/Rule.h>
|
|
||||||
#include <sniffer/Parser.h>
|
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <Mime.h>
|
#include <Mime.h>
|
||||||
#include <String.h> // BString
|
#include <String.h> // BString
|
||||||
#include <TestUtils.h>
|
#include <TestUtils.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include "sniffer/Rule.h"
|
||||||
|
#include "sniffer/Parser.h"
|
||||||
|
|
||||||
using std::cout;
|
using std::cout;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user