summaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Makes extra sure strings are not overrun.Gravatar Erik Hovland 2008-10-281-13/+19
| | | | | | | | | When using strncpy with the exact size of the destination string the string may end up lacking null termination because the source string is bigger then the destination. Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* Makes sure a value is returned by the function.Gravatar Erik Hovland 2008-10-281-0/+1
| | | | | | | A function can compile without returning something always. Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* Make sure that we have the right types.Gravatar Erik Hovland 2008-10-282-7/+8
| | | | | | | | When an unsigned type is assigned a signed value, the negatived value is never seen. Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* Compare unsigned values instead of subtracting them.Gravatar Erik Hovland 2008-10-281-2/+3
| | | | | | | Unsigned values do not return signed values when subtracted and the right operand is larger then the left operand. Signed-off-by: Dan Dennedy <dan@dennedy.org>
* Protect against resource leaks.Gravatar Erik Hovland 2008-10-282-4/+11
| | | | | Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* Make sure variables are initialized before used.Gravatar Erik Hovland 2008-10-281-1/+2
| | | | | Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* dispatch.c: fix a memory leak on not deleting the raw1394 wrapper handle.Gravatar Dan Dennedy 2008-07-211-1/+2
|
* Change handle validation to prevent segfault and be more informative.Gravatar Dan Dennedy 2008-07-065-69/+314
|
* Fix raw1394_read_cycle_timer after juju integrationGravatar Stefan Richter 2008-07-054-1/+33
| | | | | | | | The ieee1394 version of raw1394_read_cycle_timer() fell over the cliff in "First cut at integrating juju". This brings it back and adds a juju version of it. Also correct a typo in the inline documentation: s/get/read/
* Plug dir leak and initialize data structsGravatar Philippe Troin 2008-07-052-1/+16
| | | | | | | | | | | | | | While trying to track down some crashes in kino, I found the following problems with libraw1394: * There is a DIR* leak in raw1394_set_port(). * Lots of data structures are not fully initialized when calling IEEE1394 ioctl()s. These cause valgrind errors (benign, as valgrind does not know how to interpret all ioctls. However these also cause kino to crash in libraw1394. I've added a bunch of memset()s to prevent this problem from happening. Forward-ported to libraw1394 git tree by Jarod Wilson.
* Move the source code files in the juju directory into the src directory andGravatar Dan Dennedy 2008-04-306-5/+2162
| | | | give them 'fw' names instead of 'juju.'
* libraw1394.sgml, raw1394.h: remove information about deprecated isochronousGravatar Dan Dennedy 2008-04-291-2/+2
| | | | API that has been removed.
* First cut at integrating jujuGravatar Dan Dennedy 2008-04-2311-416/+905
| | | | This is currently working with legacy ieee1394 and tools/testlibraw.
* eventloop.c: apply patch from Jonas Bonn to retry read when failed with EINTR.Gravatar Dan Dennedy 2008-03-271-2/+3
| | | | | This can occur when libraw1394 caller receives a signal while in this read and the caller is not using a signal handler set with signal().
* fix documentation on raw1394_update_config_romGravatar ddennedy 2007-10-141-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@175 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Apply patch from Jon Schewe <jon.schewe@honeywell.com> to make valgrind ↵Gravatar ddennedy 2007-05-301-4/+26
| | | | | | happy. Adds --with-valgrind configure option. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@172 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add documentation about existence of RAW1394DEVGravatar ddennedy 2007-02-171-2/+12
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@171 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add support for RAW1394DEV environment variable to override default ↵Gravatar ddennedy 2007-02-171-5/+20
| | | | | | /dev/raw1394, but also attempt to failover to default. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@170 53a565d1-3bb7-0310-b661-cf11e63c67ab
* added raw1394_read_cycle_timer, contributed by Pieter PalmersGravatar ddennedy 2007-02-145-14/+51
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@169 53a565d1-3bb7-0310-b661-cf11e63c67ab
* bugfix segfault in raw1394_iso_shutdown on no iso activity due to not ↵Gravatar ddennedy 2006-10-171-2/+3
| | | | | | initializing raw1394_handle.iso_packet_infos to NULL in raw1394_new_handle git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@168 53a565d1-3bb7-0310-b661-cf11e63c67ab
* apply optimization patch from Pieter Palmers that removes modulo operator ↵Gravatar ddennedy 2006-05-091-4/+16
| | | | | | from high frequency isochronous code git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@167 53a565d1-3bb7-0310-b661-cf11e63c67ab
* cleanup some compiler warningsGravatar ddennedy 2006-04-091-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@165 53a565d1-3bb7-0310-b661-cf11e63c67ab
* lock allocated isochronous packet tracking memoryGravatar ddennedy 2006-04-091-1/+16
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@163 53a565d1-3bb7-0310-b661-cf11e63c67ab
* remove memory allocations for isochronous operations from the libraw1394 ↵Gravatar ddennedy 2006-04-092-8/+19
| | | | | | event loop to make them more respectful of realtime applications git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@162 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added a new callback response for iso_xmit handlers: RAW1394_ISO_AGAIN.Gravatar ddennedy 2006-03-042-0/+13
| | | | | | | | | | | | | | | This would be returned when the callback doesn't have enough data to create a complete packet. This can occur when the xmit buffers are bigger than the buffers supplying the data. It is not nescessarily an error, because there are enough packets in the xmit buffer. This response could give the data supplyer more time to fill the intermediate buffer without losing any packets. Signed-off-by: Pieter Palmers <pieterp@joow.be> Signed-off-by: Dan Dennedy <dan@dennedy.org> git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@161 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Fix raw1394_iso_xmit_write() to work with recent kernel change to raw1394Gravatar ddennedy 2005-07-041-1/+1
| | | | | | | to fix bug with stalling on buffer underrun. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@160 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add sanity check to queuing of packets in rawiso xmitGravatar ddennedy 2005-07-042-6/+15
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@159 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Add a comment that libraw does not allocate channels and bandwidth. ThisGravatar ddennedy 2005-07-011-0/+1
| | | | | | | | | | is already mentioned in doc/libraw1394.sgml but an existing comment about raw1394_iso_xmit_init may be misleading. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@158 53a565d1-3bb7-0310-b661-cf11e63c67ab
* bugfix stalling on iso transmission underflowGravatar ddennedy 2005-06-231-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@156 53a565d1-3bb7-0310-b661-cf11e63c67ab
* documentation and header comment corrections from Stefan RichterGravatar ddennedy 2005-06-021-19/+23
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@155 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add functions for allocating and releasing bandwidth and channelsGravatar ddennedy 2005-02-163-1/+164
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@154 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add comment about assumptions made in raw1394_get_port_infoGravatar ddennedy 2004-11-261-0/+5
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@152 53a565d1-3bb7-0310-b661-cf11e63c67ab
* apply patch from Matthias Hanel to fix uninitialized buffer and remove ↵Gravatar ddennedy 2004-11-251-6/+1
| | | | | | unncessary (and logically impossible) copy in get_port_info git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@151 53a565d1-3bb7-0310-b661-cf11e63c67ab
* improve reference documentationGravatar ddennedy 2004-11-251-75/+192
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@150 53a565d1-3bb7-0310-b661-cf11e63c67ab
* port iso examples to rawiso APIGravatar ddennedy 2004-11-181-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@147 53a565d1-3bb7-0310-b661-cf11e63c67ab
* reorganize and update documentation; fix compiler warningGravatar ddennedy 2004-11-119-678/+802
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@144 53a565d1-3bb7-0310-b661-cf11e63c67ab
* revert kernel protocol versionGravatar ddennedy 2004-10-311-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@143 53a565d1-3bb7-0310-b661-cf11e63c67ab
* bump versions, build fixes, and doc updatesGravatar ddennedy 2004-10-303-7/+4
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@140 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Jim Radford. Other half of packet_per_buffer ABI cleanup.Gravatar bencollins 2003-12-091-3/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@139 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Alexander Neundorf to support differing ISO rx modes. CurrentlyGravatar bencollins 2003-11-203-3/+18
| | | | | | | supported only by OHCI. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@138 53a565d1-3bb7-0310-b661-cf11e63c67ab
* sync with driverGravatar weihs 2003-11-093-0/+94
| | | | | | (addition of functions raw1394_arm_get_buf raw1394_arm_set_buf to get and set buffers of mapped address ranges) git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@137 53a565d1-3bb7-0310-b661-cf11e63c67ab
* sync with driver version of this fileGravatar weihs 2003-11-091-2/+6
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@136 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Alexander Neundorf to add proto for raw1394_iso_recv_flush()Gravatar bencollins 2003-10-071-0/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@135 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Fixup async_stream to use same local req variable for reentrancy.Gravatar bencollins 2003-09-261-10/+10
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@132 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Async stream support from Jim Radford.Gravatar bencollins 2003-09-113-0/+42
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@130 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Stephen Tiedemann to allow reentrancy in raw1394's usage ofGravatar bencollins 2003-07-227-200/+199
| | | | | | | raw1394_request's. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@128 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Dan Maas to add raw1394_iso_recv_flush() call to API, using theGravatar bencollins 2003-07-172-3/+25
| | | | | | | | RAW1394_IOC_ISO_RECV_FLUSH ioctl. Updated the ieee1394-ioctl.h file aswell. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@127 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Remove trailing whitespace, which automake chokes on.Gravatar bencollins 2003-07-171-1/+1
| | | | | | | Patch from Manish Singh. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@125 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Fix compiler warnings.Gravatar bencollins 2003-07-132-2/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@109 53a565d1-3bb7-0310-b661-cf11e63c67ab
* new_handle_on_port() error path fix from Jim RadfordGravatar dmaas 2003-04-071-1/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@105 53a565d1-3bb7-0310-b661-cf11e63c67ab