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:
parent
ff7afbb322
commit
3e60d395a7
@ -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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@ -349,7 +349,7 @@ void BMidiLocalProducer::SprayEvent(
|
|||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("*** spraying: ");
|
printf("*** spraying: ");
|
||||||
for (int32 t = 0; t < buf_size; ++t)
|
for (uint32 t = 0; t < buf_size; ++t)
|
||||||
{
|
{
|
||||||
printf("%02X, ", buffer[t]);
|
printf("%02X, ", buffer[t]);
|
||||||
}
|
}
|
||||||
|
@ -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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@ -26,6 +26,8 @@
|
|||||||
#include "MidiRosterLooper.h"
|
#include "MidiRosterLooper.h"
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
|
||||||
|
using namespace BPrivate;
|
||||||
|
|
||||||
// The midi_debug_level and midi_dispatcher_priority symbols
|
// The midi_debug_level and midi_dispatcher_priority symbols
|
||||||
// were exported by Be's libmidi2, and even though they do not
|
// were exported by Be's libmidi2, and even though they do not
|
||||||
// appear in the headers, some apps may still be using them.
|
// 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;
|
static BMidiRoster* roster = NULL;
|
||||||
|
|
||||||
// Destroys the BMidiRoster instance when the app quits.
|
// Destroys the BMidiRoster instance when the app quits.
|
||||||
static class BMidiRosterKiller
|
namespace BPrivate
|
||||||
{
|
{
|
||||||
public:
|
static struct BMidiRosterKiller
|
||||||
~BMidiRosterKiller()
|
|
||||||
{
|
{
|
||||||
delete roster;
|
~BMidiRosterKiller()
|
||||||
}
|
{
|
||||||
}
|
delete roster;
|
||||||
killer;
|
}
|
||||||
|
}
|
||||||
|
midi_roster_killer;
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@ -27,6 +27,8 @@
|
|||||||
#include "MidiRosterLooper.h"
|
#include "MidiRosterLooper.h"
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
|
|
||||||
|
using namespace BPrivate;
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
BMidiRosterLooper::BMidiRosterLooper()
|
BMidiRosterLooper::BMidiRosterLooper()
|
||||||
|
@ -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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
class BMidiRoster;
|
class BMidiRoster;
|
||||||
|
|
||||||
|
namespace BPrivate {
|
||||||
|
|
||||||
// Receives messages from the midi_server on behalf of the
|
// Receives messages from the midi_server on behalf of the
|
||||||
// BMidiRoster. Also keeps track of the list of endpoints.
|
// BMidiRoster. Also keeps track of the list of endpoints.
|
||||||
class BMidiRosterLooper : public BLooper
|
class BMidiRosterLooper : public BLooper
|
||||||
@ -136,4 +138,6 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace BPrivate
|
||||||
|
|
||||||
#endif // MIDI_ROSTER_LOOPER_H
|
#endif // MIDI_ROSTER_LOOPER_H
|
||||||
|
Loading…
Reference in New Issue
Block a user