forked from popcornmix/omxplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of the --no-dbus option.
- Loading branch information
Showing
4 changed files
with
80 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,17 @@ | ||
#define OMXPLAYER_DBUS_PATH_SERVER "/org/mpris/MediaPlayer2" | ||
#define OMXPLAYER_DBUS_INTERFACE_ROOT "org.mpris.MediaPlayer2" | ||
#define OMXPLAYER_DBUS_INTERFACE_PLAYER "org.mpris.MediaPlayer2.Player" | ||
|
||
#include "OMXThread.h" | ||
#include <map> | ||
|
||
class Keyboard : public OMXThread | ||
{ | ||
protected: | ||
struct termios orig_termios; | ||
int orig_fl; | ||
int m_action; | ||
DBusConnection *conn; | ||
std::map<int,int> m_keymap; | ||
std::string m_dbus_name; | ||
public: | ||
class Keyboard | ||
{ | ||
public: | ||
Keyboard(); | ||
~Keyboard(); | ||
void Close(); | ||
void Process(); | ||
void setKeymap(std::map<int,int> keymap); | ||
void setDbusName(std::string dbus_name); | ||
void Sleep(unsigned int dwMilliSeconds); | ||
int getEvent(); | ||
private: | ||
private: | ||
struct termios orig_termios; | ||
int orig_fl; | ||
std::map<int,int> m_keymap; | ||
void restore_term(); | ||
void send_action(int action); | ||
int dbus_connect(); | ||
void dbus_disconnect(); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.