~ubuntu-branches/ubuntu/hardy/ecasound2.2/hardy

« back to all changes in this revision

Viewing changes to libecasound/midi-client.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2005-04-14 09:15:48 UTC
  • Revision ID: james.westby@ubuntu.com-20050414091548-o7kgb47z0tcunh0s
Tags: upstream-2.4.1
ImportĀ upstreamĀ versionĀ 2.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ------------------------------------------------------------------------
 
2
// midi-client.cpp: Top-level interface for MIDI-clients
 
3
// Copyright (C) 2001 Kai Vehmanen
 
4
//
 
5
// This program is free software; you can redistribute it and/or modify
 
6
// it under the terms of the GNU General Public License as published by
 
7
// the Free Software Foundation; either version 2 of the License, or
 
8
// (at your option) any later version.
 
9
// 
 
10
// This program is distributed in the hope that it will be useful,
 
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
// GNU General Public License for more details.
 
14
// 
 
15
// You should have received a copy of the GNU General Public License
 
16
// along with this program; if not, write to the Free Software
 
17
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
18
// ------------------------------------------------------------------------
 
19
 
 
20
#include "midi-server.h"
 
21
#include "midi-client.h"
 
22
 
 
23
MIDI_CLIENT::MIDI_CLIENT(void) 
 
24
  : id_rep(0),
 
25
    id_set_rep(false),
 
26
    server_repp(0) { }
 
27
 
 
28
int MIDI_CLIENT::id(void) const { return(id_rep); }
 
29
 
 
30
void MIDI_CLIENT::set_id(int n) {
 
31
  id_rep = n;
 
32
  id_set_rep = true;
 
33
}
 
34
 
 
35
void MIDI_CLIENT::register_server(MIDI_SERVER* server) {
 
36
  server_repp = server;
 
37
}