From 88706bbe114653946d4c580b10f5cf036bee3033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 22 May 2005 23:52:28 +0000 Subject: [PATCH] Added some compatibility exports for libtracker.so; not yet sure if we will keep those two, though, as I don't think they are widely used. Note, BPrivate::CheckNodeIconHintPrivate() is not implemented. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12769 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/AppFileInfo.cpp | 12 ++++++++++-- src/kits/storage/NodeInfo.cpp | 19 +++++++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/kits/storage/AppFileInfo.cpp b/src/kits/storage/AppFileInfo.cpp index ea29e28d80..d1738e8bf3 100644 --- a/src/kits/storage/AppFileInfo.cpp +++ b/src/kits/storage/AppFileInfo.cpp @@ -1,6 +1,6 @@ //---------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. +// This software is part of the Haiku distribution and is covered +// by the MIT license. //--------------------------------------------------------------------- /*! \file AppFileInfo.cpp @@ -52,6 +52,14 @@ enum { B_VERSION_INFO_TYPE = 'APPV', }; +// R5 also exports these (Tracker is using them): +// (maybe we better want to drop them silently and declare +// the above in a public Haiku header - and use that one in +// Tracker when compiled for Haiku) +extern const uint32 MINI_ICON_TYPE, LARGE_ICON_TYPE; +const uint32 MINI_ICON_TYPE = 'MICN'; +const uint32 LARGE_ICON_TYPE = 'ICON'; + // debugging //#define DBG(x) x #define DBG(x) diff --git a/src/kits/storage/NodeInfo.cpp b/src/kits/storage/NodeInfo.cpp index b5fe2621ce..d7f7fc7824 100644 --- a/src/kits/storage/NodeInfo.cpp +++ b/src/kits/storage/NodeInfo.cpp @@ -1,6 +1,6 @@ //---------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. +// This software is part of the Haiku distribution and is covered +// by the MIT license. //--------------------------------------------------------------------- /*! \file NodeInfo.cpp @@ -769,3 +769,18 @@ BNodeInfo::BNodeInfo(const BNodeInfo &) { } + +// #pragma mark - + +namespace BPrivate { + +extern bool +CheckNodeIconHintPrivate(const BNode *node, bool whatever) +{ + // I've no idea what this is supposed to do exactly, but + // it seems to tell Tracker if there is an icon for the + // node. See kits/tracker/Model.cpp for details + return true; +} + +} // namespace BPrivate