| 1 |
|
| 2 |
libraw1394 |
| 3 |
========== |
| 4 |
|
| 5 |
1. About libraw1394 |
| 6 |
|
| 7 |
libraw1394 is the only supported interface to the kernel side raw1394 of |
| 8 |
the Linux IEEE-1394 subsystem, which provides direct access to the connected |
| 9 |
1394 buses to user space. Through libraw1394/raw1394, applications can directly |
| 10 |
send to and receive from other nodes without requiring a kernel driver for the |
| 11 |
protocol in question. |
| 12 |
|
| 13 |
The reason for making a library the interface to the kernel is to avoid |
| 14 |
a program dependency on the kernel version, which would hinder development and |
| 15 |
optimization of raw1394. If development changed the protocol and made it |
| 16 |
incompatible with previous versions only the libraw1394 has to be upgraded to |
| 17 |
match the kernel version (instead of all applications). |
| 18 |
|
| 19 |
Since version 2, libraw1394 also works with the kernel driver |
| 20 |
firewire-core. libraw1394's role has thus become that of a raw1394 |
| 21 |
compatibility layer for existing applications when running on firewire-core. |
| 22 |
|
| 23 |
|
| 24 |
2. Copyleft |
| 25 |
|
| 26 |
libraw1394 itself is licensed under the Lesser General Public License |
| 27 |
(short LGPL, see file COPYING.LIB in the source distribution). Other files in |
| 28 |
the source archives not belonging to but being part of the build procedure of |
| 29 |
libraw1394 are under their own licenses, as stated at the top of the individual |
| 30 |
files. |
| 31 |
|
| 32 |
|
| 33 |
3. API documentation |
| 34 |
|
| 35 |
Finally there is something, in the doc subdirectory. The file is |
| 36 |
libraw1394.sgml (it's Docbook format), and there are preformatted PostScript and |
| 37 |
HTML available. This documentation is not complete yet. |
| 38 |
|
| 39 |
|
| 40 |
4. Multithreading |
| 41 |
|
| 42 |
This library should be multithreadable with the restriction that one |
| 43 |
raw1394handle_t may be used only within a single thread. Multiple threads |
| 44 |
operating on the same handle would royally mess up the kernel-user protocol. |
| 45 |
Simply use separate handles for each thread in which you need to use libraw1394. |
| 46 |
|
| 47 |
|
| 48 |
5. Pkg-config |
| 49 |
|
| 50 |
The library comes with a pkg-config .pc file, so you can check for |
| 51 |
libraw1394 and its version in your configure script. For example, here is how |
| 52 |
to use the autoconf macro: |
| 53 |
|
| 54 |
PKG_CHECK_MODULES(LIBRAW1394, libraw1394 >= 1.1.0) |
| 55 |
|
| 56 |
This macro sets the variables LIBRAW1394_CFLAGS and LIBRAW1394_LIBS. You |
| 57 |
have to include those into your build variables so that the build process |
| 58 |
correctly links with libraw1394. |
| 59 |
|
| 60 |
|
| 61 |
6. Contact |
| 62 |
|
| 63 |
Send questions, suggestions, bug reports and patches to the mailing |
| 64 |
list [email protected]. This list is open for posting |
| 65 |
without prior subscription, and replies will usually be Cc'd to you. Visit |
| 66 |
http://ieee1394.wiki.kernel.org/ for links to list subscription interfaces and |
| 67 |
list archives. |
| 68 |
|
| 69 |
Maintainer of libraw1394 is currently Stefan Richter. See the file |
| 70 |
AUTHORS for a complete list of contributors to libraw1394. |
| 71 |
|
| 72 |
Source repository: |
| 73 |
git://git.kernel.org/pub/scm/libs/ieee1394/libraw1394.git |
| 74 |
http://git.kernel.org/pub/scm/libs/ieee1394/libraw1394.git |
| 75 |
https://git.kernel.org/pub/scm/libs/ieee1394/libraw1394.git |
| 76 |
|
| 77 |
Gitweb: |
| 78 |
http://git.kernel.org/?p=libs/ieee1394/libraw1394.git |
| 79 |
|
| 80 |
Release tarballs: |
| 81 |
https://www.kernel.org/pub/linux/libs/ieee1394/ |
| 82 |
ftp://ftp.kernel.org/pub/linux/libs/ieee1394/ |