Put private classes in the BPrivate namespace.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7563 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit 2004-05-13 10:55:51 +00:00
parent ff7afbb322
commit 3e60d395a7
4 changed files with 22 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
* Copyright (c) 2002-2004 Matthijs Hollemans
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -349,7 +349,7 @@ void BMidiLocalProducer::SprayEvent(
#ifdef DEBUG
printf("*** spraying: ");
for (int32 t = 0; t < buf_size; ++t)
for (uint32 t = 0; t < buf_size; ++t)
{
printf("%02X, ", buffer[t]);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
* Copyright (c) 2002-2004 Matthijs Hollemans
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -26,6 +26,8 @@
#include "MidiRosterLooper.h"
#include "protocol.h"
using namespace BPrivate;
// The midi_debug_level and midi_dispatcher_priority symbols
// were exported by Be's libmidi2, and even though they do not
// appear in the headers, some apps may still be using them.
@ -46,15 +48,17 @@ int32 midi_dispatcher_priority = B_REAL_TIME_PRIORITY;
static BMidiRoster* roster = NULL;
// Destroys the BMidiRoster instance when the app quits.
static class BMidiRosterKiller
namespace BPrivate
{
static struct BMidiRosterKiller
{
public:
~BMidiRosterKiller()
{
delete roster;
}
}
killer;
midi_roster_killer;
}
//------------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
* Copyright (c) 2002-2004 Matthijs Hollemans
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -27,6 +27,8 @@
#include "MidiRosterLooper.h"
#include "protocol.h"
using namespace BPrivate;
//------------------------------------------------------------------------------
BMidiRosterLooper::BMidiRosterLooper()

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
* Copyright (c) 2002-2004 Matthijs Hollemans
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -28,6 +28,8 @@
class BMidiRoster;
namespace BPrivate {
// Receives messages from the midi_server on behalf of the
// BMidiRoster. Also keeps track of the list of endpoints.
class BMidiRosterLooper : public BLooper
@ -136,4 +138,6 @@ private:
#endif
};
} // namespace BPrivate
#endif // MIDI_ROSTER_LOOPER_H