~ubuntu-branches/ubuntu/natty/lirc/natty-proposed

« back to all changes in this revision

Viewing changes to daemons/receive.h

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2010-04-02 15:06:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402150619-y1z8c1yqv621a11o
Tags: 0.8.7~pre2-0ubuntu1
* Update to 0.8.7~pre2
  - Fixes issues with lirc on maverick. (LP: #620498)
* Add lirc-in-kernel-ioctls.patch to use ioctls from the kernel for drivers.
* Drop patches upstream now:
  - debian/patches/appleir_repeat_issue.patch
  - debian/patches/hauppauge-tv-card.patch
  - debian/patches/lirc-i2c-2.6.patch
  - debian/patches/lirc_dev-2.6.33.patch
* Add updated-driver-names.patch 
* Refresh patches:
  - debian/patches/02_Makefile.in
  - debian/patches/13-warning-cleanup
* Update extra transmitter and remote databases to not reference atiusb.
* debian/control:
  - Update branches to be owned by ~mythbuntu-dev
* Disable in-kernel-support when starting lircd, and re-enable when
  stopping.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $Id: receive.h,v 5.4 2007/07/29 18:20:13 lirc Exp $      */
 
1
/*      $Id: receive.h,v 5.7 2010/05/30 11:43:35 lirc Exp $      */
2
2
 
3
3
/****************************************************************************
4
4
 ** receive.h ***************************************************************
16
16
 
17
17
#include "ir_remote.h"
18
18
 
19
 
#define RBUF_SIZE (256)
 
19
#define RBUF_SIZE (512)
20
20
 
21
21
#define REC_SYNC 8
22
22
 
 
23
#define MIN_RECEIVE_TIMEOUT 100000
 
24
 
23
25
struct rbuf
24
26
{
25
27
        lirc_t data[RBUF_SIZE];
33
35
        lirc_t sum;
34
36
};
35
37
 
 
38
static inline lirc_t receive_timeout(lirc_t usec)
 
39
{
 
40
        return 2*usec<MIN_RECEIVE_TIMEOUT ? MIN_RECEIVE_TIMEOUT:2*usec;
 
41
}
 
42
 
36
43
inline lirc_t lirc_t_max(lirc_t a,lirc_t b);
37
44
void init_rec_buffer();
38
45
int clear_rec_buffer(void);