/*

                                   _JNJ`                        
                               .JNMH`                           
                              JMMF`       `;.                   
                            .NMM)          `MN.                 
                            MMM)            (MML                
                           (MMM`             MMML               
                     M  I  D  N  I  G  H  T    C  o  D  E       
                           (NMMF             MHNH               
                            NMML            .MMM                
                             NMML          .NMH                 
                              4MMNL       .#F                   
                               `4HNNL_   `                      
                                   `"""`                        

                          Copyright (C) 2004-2010
       "Ian (Larry) Latter" <ian dot latter at midnightcode dot org>

    Midnight Code is a registered trademark of Ian Latter.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, and mirrored at the Midnight Code web
    site; as at version 2 of the License only.
  
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    General Public License for more details.
  
    You should have received a copy of the GNU General Public License
    (version 2) along with this program; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA, or see http://midnightcode.org/gplv2.txt

*/


/* ulirc.h :: Midnight Code UDP LIRC client application	*/


#define REMOTE_STRUCTURE "remote"

extern struct remote_head_t * remotes;

struct remote_element_t
{
  char name[64];
  struct in_addr lirc_address;
  char lirc_address_s[32];
  int lirc_port;
  int signal_data_bits;
  int signal_header_pulse;
  int signal_header_space;
  int signal_one_pulse;
  int signal_one_space;
  int signal_zero_pulse;
  int signal_zero_space;
  int signal_trail_pulse;
  int signal_gap_space;
  long long button_voldown_n;
  long long button_volup_n;
  long long button_mute_n;
  long long button_chanup_n;
  long long button_chandown_n;
  long long button_up_n;
  long long button_down_n;
  long long button_left_n;
  long long button_right_n;
  long long button_enter_n;
  long long button_rewind_n;
  long long button_play_n;
  long long button_forward_n;
  long long button_stop_n;
  long long button_pause_n;
  unsigned char button_voldown_s[16];
  unsigned char button_volup_s[16];
  unsigned char button_mute_s[16];
  unsigned char button_chanup_s[16];
  unsigned char button_chandown_s[16];
  unsigned char button_up_s[16];
  unsigned char button_down_s[16];
  unsigned char button_left_s[16];
  unsigned char button_right_s[16];
  unsigned char button_enter_s[16];
  unsigned char button_rewind_s[16];
  unsigned char button_play_s[16];
  unsigned char button_forward_s[16];
  unsigned char button_stop_s[16];
  unsigned char button_pause_s[16];
  midnightcode_list_entry(remote_element_t)
};

midnightcode_list_head(remote_head_t, remote_element_t)

