changed comment style

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2863 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit 2003-03-02 11:48:26 +00:00
parent b8d4f26fd9
commit abe999d807
8 changed files with 60 additions and 114 deletions

View File

@ -1,9 +1,5 @@
/**
* @file MidiConsumer.cpp
*
* Implementation of the BMidiConsumer class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"

View File

@ -1,9 +1,5 @@
/**
* @file MidiEndpoint.cpp
*
* Implementation of the BMidiEndpoint class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"

View File

@ -1,9 +1,5 @@
/**
* @file MidiLocalConsumer.cpp
*
* Implementation of the BMidiLocalConsumer class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"

View File

@ -1,9 +1,5 @@
/**
* @file MidiLocalProducer.cpp
*
* Implementation of the BMidiLocalProducer class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"

View File

@ -1,9 +1,5 @@
/**
* @file MidiProducer.cpp
*
* Implementation of the BMidiProducer class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"

View File

@ -1,9 +1,5 @@
/**
* @file MidiRoster.cpp
*
* Implementation of the BMidiRoster class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"
@ -18,22 +14,20 @@
// For backwards compatibility's sake, we export those symbols
// as well, even though we do not use them for anything.
/** Not used. For backwards compatibility only. */
// Not used. For backwards compatibility only.
int32 midi_debug_level = 0;
/** Not used. For backwards compatibility only. */
// Not used. For backwards compatibility only.
int32 midi_dispatcher_priority = B_REAL_TIME_PRIORITY;
//------------------------------------------------------------------------------
/**
* The one and only BMidiRoster instance, which is created
* the first time the client app calls MidiRoster(). It is
* destroyed by the BMidiRosterKiller when the app quits.
*/
// The one and only BMidiRoster instance, which is created
// the first time the client app calls MidiRoster(). It is
// destroyed by the BMidiRosterKiller when the app quits.
static BMidiRoster* roster = NULL;
/** Destroys the BMidiRoster instance when the app quits. */
// Destroys the BMidiRoster instance when the app quits.
static class BMidiRosterKiller
{
public:

View File

@ -1,9 +1,5 @@
/**
* @file MidiRosterLooper.cpp
*
* Implementation of the BMidiRosterLooper class.
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#include "debug.h"

View File

@ -1,7 +1,5 @@
/**
* @file MidiRosterLooper.h
*
* @author Matthijs Hollemans
/*
* Copyright (c) 2002-2003 Matthijs Hollemans
*/
#ifndef MIDI_ROSTER_LOOPER_H
@ -12,10 +10,8 @@
class BMidiRoster;
/**
* Receives messages from the midi_server on behalf of the
* BMidiRoster. Also keeps track of the list of endpoints.
*/
// Receives messages from the midi_server on behalf of the
// BMidiRoster. Also keeps track of the list of endpoints.
class BMidiRosterLooper : public BLooper
{
public:
@ -23,38 +19,32 @@ public:
BMidiRosterLooper();
virtual ~BMidiRosterLooper();
/** Starts up the looper. */
// Starts up the looper.
bool Init(BMidiRoster* roster);
/** Does the work for BMidiRoster::NextEndpoint(). */
// Does the work for BMidiRoster::NextEndpoint().
BMidiEndpoint* NextEndpoint(int32* id);
/** Finds an endpoint in our list of endpoints. */
// Finds an endpoint in our list of endpoints.
BMidiEndpoint* FindEndpoint(int32 id);
/** Adds an endpoint to our list. */
// Adds an endpoint to our list.
void AddEndpoint(BMidiEndpoint* endp);
/**
* Removes an endpoint from our list. Throws away
* any connections that this endpoint is part of.
*/
// Removes an endpoint from our list. Throws away
// any connections that this endpoint is part of.
void RemoveEndpoint(BMidiEndpoint* endp);
/**
* Invoked when the client app wants to be kept informed
* about changes in the roster. From now on, we will send
* the messenger B_MIDI_EVENT notifications when something
* interesting happens. But first, we send a whole bunch
* of notifications about the registered remote endpoints,
* and the connections between them.
*/
// Invoked when the client app wants to be kept informed
// about changes in the roster. From now on, we will send
// the messenger B_MIDI_EVENT notifications when something
// interesting happens. But first, we send a whole bunch
// of notifications about the registered remote endpoints,
// and the connections between them.
void StartWatching(const BMessenger* watcher);
/**
* From now on, we will no longer send notifications to
* the client when something interesting happens.
*/
// From now on, we will no longer send notifications to
// the client when something interesting happens.
void StopWatching();
virtual void MessageReceived(BMessage* msg);
@ -77,46 +67,34 @@ private:
void ChangeProperties(BMessage* msg, BMidiEndpoint* endp);
void ChangeLatency(BMessage* msg, BMidiEndpoint* endp);
/**
* Removes the consumer from the list of connections of
* all the producers it is connected to. Also sends out
* B_MIDI_EVENT "disconnected" notifications if the
* consumer is remote and the client is watching.
*/
// Removes the consumer from the list of connections of
// all the producers it is connected to. Also sends out
// B_MIDI_EVENT "disconnected" notifications if the
// consumer is remote and the client is watching.
void DisconnectDeadConsumer(BMidiConsumer* cons);
/**
* Sends out B_MIDI_EVENT "disconnected" notifications
* if the producer is remote and the client is watching.
*/
// Sends out B_MIDI_EVENT "disconnected" notifications
// if the producer is remote and the client is watching.
void DisconnectDeadProducer(BMidiProducer* prod);
/**
* Sends B_MIDI_EVENT notifications for all registered
* remote endpoints to the watcher. Used when the client
* calls StartWatching().
*/
// Sends B_MIDI_EVENT notifications for all registered
// remote endpoints to the watcher. Used when the client
// calls StartWatching().
void AllEndpoints();
/**
* Sends B_MIDI_EVENT notifications for the connections
* between all registered remote endpoints to the watcher.
* Used when the client calls StartWatching().
*/
// Sends B_MIDI_EVENT notifications for the connections
// between all registered remote endpoints to the watcher.
// Used when the client calls StartWatching().
void AllConnections();
/**
* Sends a B_MIDI_EVENT notification to the watcher
* when another application changes the attributes
* of one of its endpoints.
*/
// Sends a B_MIDI_EVENT notification to the watcher
// when another application changes the attributes
// of one of its endpoints.
void ChangeEvent(BMessage* msg, BMidiEndpoint* endp);
/**
* Sends a B_MIDI_EVENT notification to the watcher
* when another application connects or disconnects
* the two endpoints.
*/
// Sends a B_MIDI_EVENT notification to the watcher
// when another application connects or disconnects
// the two endpoints.
void ConnectionEvent(
BMidiProducer* prod, BMidiConsumer* cons, bool mustConnect);
@ -125,16 +103,14 @@ private:
BMidiRoster* roster;
/**
* Makes sure BMidiRoster::MidiRoster() does not return
* until confirmation from the midi_server is received.
*/
// Makes sure BMidiRoster::MidiRoster() does not return
// until confirmation from the midi_server is received.
sem_id initLock;
/** The object we send B_MIDI_EVENT notifications to. */
// The object we send B_MIDI_EVENT notifications to.
BMessenger* watcher;
/** All the endpoints in the system, local and remote. */
// All the endpoints in the system, local and remote.
BList endpoints;
#ifdef DEBUG