From abe999d807308487134efaf8e343adaa1295bc85 Mon Sep 17 00:00:00 2001 From: mahlzeit Date: Sun, 2 Mar 2003 11:48:26 +0000 Subject: [PATCH] changed comment style git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2863 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/midi2/MidiConsumer.cpp | 8 +-- src/kits/midi2/MidiEndpoint.cpp | 8 +-- src/kits/midi2/MidiLocalConsumer.cpp | 8 +-- src/kits/midi2/MidiLocalProducer.cpp | 8 +-- src/kits/midi2/MidiProducer.cpp | 8 +-- src/kits/midi2/MidiRoster.cpp | 22 +++--- src/kits/midi2/MidiRosterLooper.cpp | 8 +-- src/kits/midi2/MidiRosterLooper.h | 104 +++++++++++---------------- 8 files changed, 60 insertions(+), 114 deletions(-) diff --git a/src/kits/midi2/MidiConsumer.cpp b/src/kits/midi2/MidiConsumer.cpp index 463500e9c5..3d1f01eb2a 100644 --- a/src/kits/midi2/MidiConsumer.cpp +++ b/src/kits/midi2/MidiConsumer.cpp @@ -1,9 +1,5 @@ -/** - * @file MidiConsumer.cpp - * - * Implementation of the BMidiConsumer class. - * - * @author Matthijs Hollemans +/* + * Copyright (c) 2002-2003 Matthijs Hollemans */ #include "debug.h" diff --git a/src/kits/midi2/MidiEndpoint.cpp b/src/kits/midi2/MidiEndpoint.cpp index d78051e798..8be5e9c0d7 100644 --- a/src/kits/midi2/MidiEndpoint.cpp +++ b/src/kits/midi2/MidiEndpoint.cpp @@ -1,9 +1,5 @@ -/** - * @file MidiEndpoint.cpp - * - * Implementation of the BMidiEndpoint class. - * - * @author Matthijs Hollemans +/* + * Copyright (c) 2002-2003 Matthijs Hollemans */ #include "debug.h" diff --git a/src/kits/midi2/MidiLocalConsumer.cpp b/src/kits/midi2/MidiLocalConsumer.cpp index a913e2d2fe..e1f1bd033a 100644 --- a/src/kits/midi2/MidiLocalConsumer.cpp +++ b/src/kits/midi2/MidiLocalConsumer.cpp @@ -1,9 +1,5 @@ -/** - * @file MidiLocalConsumer.cpp - * - * Implementation of the BMidiLocalConsumer class. - * - * @author Matthijs Hollemans +/* + * Copyright (c) 2002-2003 Matthijs Hollemans */ #include "debug.h" diff --git a/src/kits/midi2/MidiLocalProducer.cpp b/src/kits/midi2/MidiLocalProducer.cpp index ebd7ac2c51..767e472c64 100644 --- a/src/kits/midi2/MidiLocalProducer.cpp +++ b/src/kits/midi2/MidiLocalProducer.cpp @@ -1,9 +1,5 @@ -/** - * @file MidiLocalProducer.cpp - * - * Implementation of the BMidiLocalProducer class. - * - * @author Matthijs Hollemans +/* + * Copyright (c) 2002-2003 Matthijs Hollemans */ #include "debug.h" diff --git a/src/kits/midi2/MidiProducer.cpp b/src/kits/midi2/MidiProducer.cpp index e55478fd49..ff1c1d34e4 100644 --- a/src/kits/midi2/MidiProducer.cpp +++ b/src/kits/midi2/MidiProducer.cpp @@ -1,9 +1,5 @@ -/** - * @file MidiProducer.cpp - * - * Implementation of the BMidiProducer class. - * - * @author Matthijs Hollemans +/* + * Copyright (c) 2002-2003 Matthijs Hollemans */ #include "debug.h" diff --git a/src/kits/midi2/MidiRoster.cpp b/src/kits/midi2/MidiRoster.cpp index d010f52277..b0ccb6df80 100644 --- a/src/kits/midi2/MidiRoster.cpp +++ b/src/kits/midi2/MidiRoster.cpp @@ -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: diff --git a/src/kits/midi2/MidiRosterLooper.cpp b/src/kits/midi2/MidiRosterLooper.cpp index 06257b11c6..7d9f64c530 100644 --- a/src/kits/midi2/MidiRosterLooper.cpp +++ b/src/kits/midi2/MidiRosterLooper.cpp @@ -1,9 +1,5 @@ -/** - * @file MidiRosterLooper.cpp - * - * Implementation of the BMidiRosterLooper class. - * - * @author Matthijs Hollemans +/* + * Copyright (c) 2002-2003 Matthijs Hollemans */ #include "debug.h" diff --git a/src/kits/midi2/MidiRosterLooper.h b/src/kits/midi2/MidiRosterLooper.h index e99cdf6f9c..eae44c0473 100644 --- a/src/kits/midi2/MidiRosterLooper.h +++ b/src/kits/midi2/MidiRosterLooper.h @@ -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