aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/app.hpp b/src/app.hpp
index 5cfd78f..e7a9ae0 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -203,7 +203,7 @@ struct App {
result<int> api_request_surface(char const *drawing_name, char const *appid, int flag);
char const *api_request_surface(char const *drawing_name, char const *ivi_id);
- void api_activate_surface(char const *drawing_name, char const *drawing_area, const reply_func &reply);
+ void api_activate_surface(char const *appid, char const *drawing_name, char const *drawing_area, const reply_func &reply);
void api_deactivate_surface(char const *drawing_name, const reply_func &reply);
void api_enddraw(char const *drawing_name);
result<json_object *> api_get_display_info();
@@ -216,7 +216,10 @@ struct App {
void surface_created(uint32_t surface_id);
void surface_removed(uint32_t surface_id);
-private:
+ // Do not use this function
+ static int processTimerHandler(sd_event_source *s, uint64_t usec, void *userdata);
+
+ private:
optional<int> lookup_id(char const *name);
optional<std::string> lookup_name(int id);
@@ -226,6 +229,7 @@ private:
void check_flushdraw(int surface_id);
int init_layers();
+ void timerHandler();
void surface_set_layout(int surface_id, optional<int> sub_surface_id = nullopt);
void layout_commit();