struct entry_ref was used without defining it.
Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14580 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fc0c33529d
commit
12119222aa
@ -1,78 +1,44 @@
|
|||||||
//------------------------------------------------------------------------------
|
/*
|
||||||
// Copyright (c) 2001-2002, OpenBeOS
|
* Copyright 2001-2005, Haiku Inc. All Rights Reserved.
|
||||||
//
|
* Distributed under the terms of the MIT License.
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
*
|
||||||
// copy of this software and associated documentation files (the "Software"),
|
* Authors:
|
||||||
// to deal in the Software without restriction, including without limitation
|
* Erik Jaesler (erik@cgsoftware.com)
|
||||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
* DarkWyrm <bpmagic@columbus.rr.com>
|
||||||
// and/or sell copies of the Software, and to permit persons to whom the
|
*/
|
||||||
// Software is furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included in
|
|
||||||
// all copies or substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
// DEALINGS IN THE SOFTWARE.
|
|
||||||
//
|
|
||||||
// File Name: Message.h
|
|
||||||
// Author(s): Erik Jaesler (erik@cgsoftware.com)
|
|
||||||
// DarkWyrm <bpmagic@columbus.rr.com>
|
|
||||||
// Description: BMessage class creates objects that store data and that
|
|
||||||
// can be processed in a message loop. BMessage objects
|
|
||||||
// are also used as data containers by the archiving and
|
|
||||||
// the scripting mechanisms.
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef _MESSAGE_H
|
#ifndef _MESSAGE_H
|
||||||
#define _MESSAGE_H
|
#define _MESSAGE_H
|
||||||
|
|
||||||
// Standard Includes -----------------------------------------------------------
|
|
||||||
|
|
||||||
// System Includes -------------------------------------------------------------
|
|
||||||
#include <BeBuild.h>
|
#include <BeBuild.h>
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <Rect.h>
|
#include <Rect.h>
|
||||||
#include <DataIO.h>
|
#include <DataIO.h>
|
||||||
#include <Flattenable.h>
|
#include <Flattenable.h>
|
||||||
|
|
||||||
#include <AppDefs.h> /* For convenience */
|
// for convenience
|
||||||
#include <TypeConstants.h> /* For convenience */
|
#include <AppDefs.h>
|
||||||
|
#include <TypeConstants.h>
|
||||||
// Project Includes ------------------------------------------------------------
|
|
||||||
|
|
||||||
// Local Includes --------------------------------------------------------------
|
|
||||||
|
|
||||||
// Local Defines ---------------------------------------------------------------
|
|
||||||
|
|
||||||
// Globals ---------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
|
class BBlockCache;
|
||||||
class BBlockCache;
|
class BMessenger;
|
||||||
class BMessenger;
|
class BHandler;
|
||||||
class BHandler;
|
class BString;
|
||||||
class BString;
|
struct entry_ref;
|
||||||
|
|
||||||
// Private or reserved ---------------------------------------------------------
|
// Private or reserved ---------------------------------------------------------
|
||||||
extern "C" void _msg_cache_cleanup_();
|
extern "C" void _msg_cache_cleanup_();
|
||||||
extern "C" int _init_message_();
|
extern "C" int _init_message_();
|
||||||
extern "C" int _delete_message_();
|
extern "C" int _delete_message_();
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
// Name lengths and Scripting specifiers ---------------------------------------
|
// Name lengths and Scripting specifiers ---------------------------------------
|
||||||
#define B_FIELD_NAME_LENGTH 255
|
#define B_FIELD_NAME_LENGTH 255
|
||||||
#define B_PROPERTY_NAME_LENGTH 255
|
#define B_PROPERTY_NAME_LENGTH 255
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
B_NO_SPECIFIER = 0,
|
B_NO_SPECIFIER = 0,
|
||||||
B_DIRECT_SPECIFIER = 1,
|
B_DIRECT_SPECIFIER,
|
||||||
B_INDEX_SPECIFIER,
|
B_INDEX_SPECIFIER,
|
||||||
B_REVERSE_INDEX_SPECIFIER,
|
B_REVERSE_INDEX_SPECIFIER,
|
||||||
B_RANGE_SPECIFIER,
|
B_RANGE_SPECIFIER,
|
||||||
@ -89,8 +55,7 @@ namespace BPrivate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// BMessage class --------------------------------------------------------------
|
// BMessage class --------------------------------------------------------------
|
||||||
class BMessage
|
class BMessage {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
uint32 what;
|
uint32 what;
|
||||||
|
|
||||||
@ -463,14 +428,4 @@ static BBlockCache *sMsgCache;
|
|||||||
bool fHasSpecifiers;
|
bool fHasSpecifiers;
|
||||||
};
|
};
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#endif // _MESSAGE_H
|
#endif // _MESSAGE_H
|
||||||
|
|
||||||
/*
|
|
||||||
* $Log $
|
|
||||||
*
|
|
||||||
* $Id $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user