root/trunk/libffado/src/libosc/OscClient.h

Revision 456, 1.5 kB (checked in by ppalmers, 17 years ago)

start of an OSC client (non-functional)

Line 
1 /*
2  * Copyright (C) 2005-2007 by Pieter Palmers
3  *
4  * This file is part of FFADO
5  * FFADO = Free Firewire (pro-)audio drivers for linux
6  *
7  * FFADO is based upon FreeBoB
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License version 2.1, as published by the Free Software Foundation;
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21  * MA 02110-1301 USA
22  */
23
24 #ifndef __FFADO_OSCCLIENT__
25 #define __FFADO_OSCCLIENT__
26
27 #include <lo/lo.h>
28 #include <string>
29
30 #include "../debugmodule/debugmodule.h"
31
32 using namespace std;
33
34 namespace OSC {
35 class OscMessage;
36 class OscNode;
37
38 class OscClient {
39
40 public:
41
42     OscClient(string target);
43     virtual ~OscClient();
44
45     bool init();
46
47 private:
48     static void error_cb(int num, const char* msg, const char* path);
49     static int  generic_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg, void* user_data);
50
51 protected:
52     string             m_target;
53
54 public:
55     void setVerboseLevel(int l);
56 private:
57     DECLARE_DEBUG_MODULE;
58
59 };
60
61 } // end of namespace OSC
62
63 #endif /* __FFADO_OSCCLIENT__ */
64
65
Note: See TracBrowser for help on using the browser.