/*************************************************************************** * Copyright (c) 2003-2006, Broadcom Corporation * All Rights Reserved * Confidential Property of Broadcom Corporation * * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. * * $brcm_Workfile: $ * $brcm_Revision: $ * $brcm_Date: $ * * Module Description: * * Revision History: * * $brcm_Log: $ * ***************************************************************************/ #ifndef BAPP_REMOTE_H__ #define BAPP_REMOTE_H__ #include "bapp_types.h" #include "bapp_event.h" /* Key code modifier stored in msb of event but this might not work for all protocols */ typedef enum ir_key_type_t { eKEY_DOWN = (int)0x80000000, eKEY_UP = (int)0x40000000, eKEY_CMD = (int)0x20000000 }ir_key_type_t; typedef struct bapp_remote *bapp_remote_t; #ifdef __cplusplus extern "C" { #endif bapp_result_t bapp_remote_open( bapp_remote_t *p_remote ); void bapp_remote_close( bapp_remote_t handle ); bapp_result_t bapp_remote_get_event( bapp_remote_t handle, bapp_event_t *event /* [out,size_is(nevents)] event from the user */ ); #ifdef __cplusplus } #endif #endif /* BAPP_REMOTE_H__ */