mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +02:00
reduce dependencies on driver/rcinput.h
* add new header that only contains neutrino_msg_t and friends, often this
is all that's needed instead of full rcinput.h
* directly include rcinput.h in some cpp files instead of relying on
accidental inclusion in some header
* add class forward declarations to avoid dragging in rcinput indirectly
This could use more work to further reduce the impact; maybe separating
the CRCinput::key_* constants from the rcinput class would be good.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 47fbfbed9b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-01-15 (Mon, 15 Jan 2018)
Origin message was:
------------------
reduce dependencies on driver/rcinput.h
* add new header that only contains neutrino_msg_t and friends, often this
is all that's needed instead of full rcinput.h
* directly include rcinput.h in some cpp files instead of relying on
accidental inclusion in some header
* add class forward declarations to avoid dragging in rcinput indirectly
This could use more work to further reduce the impact; maybe separating
the CRCinput::key_* constants from the rcinput class would be good.
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
7b67933d28
commit
acdea13d8e
@@ -52,6 +52,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <driver/neutrino_msg_t.h>
|
||||
|
||||
#ifndef KEY_OK
|
||||
#define KEY_OK 0x160
|
||||
#endif
|
||||
@@ -117,13 +119,6 @@
|
||||
#define KEY_FN_B
|
||||
*/
|
||||
|
||||
|
||||
typedef unsigned long neutrino_msg_t;
|
||||
typedef unsigned long neutrino_msg_data_t;
|
||||
|
||||
#define NEUTRINO_UDS_NAME "/tmp/neutrino.sock"
|
||||
|
||||
|
||||
class CRCInput
|
||||
{
|
||||
private:
|
||||
@@ -275,7 +270,7 @@ class CRCInput
|
||||
RC_zoomout = KEY_ZOOMOUT,
|
||||
|
||||
RC_timeout = 0xFFFFFFFF,
|
||||
RC_nokey = 0xFFFFFFFE
|
||||
RC_nokey = RC_NOKEY
|
||||
};
|
||||
|
||||
//rc-hardware definitions
|
||||
|
Reference in New Issue
Block a user