root/trunk/libffado/libfreebob/freebob.h

Revision 435, 2.1 kB (checked in by pieterpalmers, 15 years ago)

src/devicemanager:
- start OSC server for the device manager

src/devicemanager,
src/iavdevice,
src/libieee1394/configrom:
- inherit from OscNode? to become Osc'able

src/bounce,
src/libstreaming/AmdtpStreamProcessor,
src/libstreaming/AmdtpSlaveStreamProcessor:
- fixed bounce device implementation, now working

src/bebob:
- fixed midi bug

General:
- removed 'intermediate XML'
- removed obsolete tests
- removed obsolete files
- removed obsolete API calls

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /* freebob.h
2  * Copyright (C) 2005,07 Pieter Palmers
3  * Copyright (C) 2006 Daniel Wagner
4  *
5  * This file is part of FreeBoB
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20  * MA 02110-1301 USA
21  */
22
23 #ifndef FREEBOB_H
24 #define FREEBOB_H
25
26 #define FREEBOB_MAX_NAME_LEN 256
27
28 #define FREEBOB_BOUNCE_SERVER_VENDORNAME  "FreeBoB Server"
29 #define FREEBOB_BOUNCE_SERVER_MODELNAME   "freebob-server"
30
31 #define FREEBOB_BOUNCE_SERVER_GETXMLDESCRIPTION_CMD
32 #define AVC1394_SUBUNIT_TYPE_FREEBOB_BOUNCE_SERVER      0x0D
33
34 #define FREEBOB_API_VERSION 2
35
36 enum freebob_direction {
37     FREEBOB_CAPTURE  = 0,
38     FREEBOB_PLAYBACK = 1,
39 };
40
41 typedef struct freebob_handle* freebob_handle_t;
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47 freebob_handle_t
48 freebob_new_handle( int port );
49
50 int
51 freebob_destroy_handle( freebob_handle_t freebob_handle );
52
53 int
54 freebob_discover_devices( freebob_handle_t freebob_handle, int verbose_level );
55
56 int freebob_node_is_valid_freebob_device(freebob_handle_t fb_handle, int node_id);
57 int freebob_get_nb_devices_on_bus(freebob_handle_t fb_handle);
58
59 int freebob_get_device_node_id(freebob_handle_t fb_handle, int device_nr);
60 int freebob_set_samplerate(freebob_handle_t freebob_handle, int node_id, int samplerate);
61
62 /* ABI stuff */
63 const char*
64 freebob_get_version();
65
66 int
67 freebob_get_api_version();
68
69 /* various function */
70
71 /* workaround: wait usec after each AVC command.
72    will disapear as soon bug is fixed */   
73 void freebob_sleep_after_avc_command( int time );
74
75 #ifdef __cplusplus
76 }
77 #endif
78
79 #endif /* FREEBOB_H */
Note: See TracBrowser for help on using the browser.