Code Review
/
src
/
libhomescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitreview file for Lucky Lamprey branch
[src/libhomescreen.git]
/
include
/
libhomescreen.hpp
diff --git
a/include/libhomescreen.hpp
b/include/libhomescreen.hpp
index
e51e01c
..
417ccdc
100644
(file)
--- a/
include/libhomescreen.hpp
+++ b/
include/libhomescreen.hpp
@@
-58,6
+58,7
@@
public:
static const std::vector<std::string> event_list;
/* Method */
static const std::vector<std::string> event_list;
/* Method */
+ int init(const char *hostname, const int port, const char *token);
int init(const int port, const std::string& token);
int tapShortcut(const char* application_id);
int init(const int port, const std::string& token);
int tapShortcut(const char* application_id);
@@
-86,6
+87,7
@@
public:
private:
int initialize_websocket();
private:
int initialize_websocket();
+ int initialize_websocket(const char *hostname, const int port, const char *token);
void (*onEvent)(const std::string& event, struct json_object* event_contents);
void (*onReply)(struct json_object* reply);
void (*onEvent)(const std::string& event, struct json_object* event_contents);
void (*onReply)(struct json_object* reply);
@@
-96,9
+98,6
@@
private:
sd_event* mploop;
std::string muri;
sd_event* mploop;
std::string muri;
- int mport = 2000;
- std::string mtoken = "hs";
-
std::map<EventType, handler_func> handlers;
public:
std::map<EventType, handler_func> handlers;
public: