aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app.hpp b/src/app.hpp
index b7d6815..13bc421 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -128,6 +128,14 @@ struct id_allocator {
}
};
+typedef struct CarInfo {
+ bool parking_brake_stt;
+ bool accel_pedal_stt;
+ double accel_pedal_pos;
+ const char *car_stt;
+ bool headlamp_stt;
+} CarInfo;
+
struct App {
typedef std::unordered_map<uint32_t, struct compositor::rect> rect_map;
@@ -234,6 +242,8 @@ struct App {
void surface_created(uint32_t surface_id);
void surface_removed(uint32_t surface_id);
+ void setAccelPedalPos(double val);
+
private:
PolicyManager pm_;
LayoutManager lm_;
@@ -241,6 +251,7 @@ private:
std::unordered_map<std::string, std::string> app2role_;
std::unordered_map<std::string, std::string> role2app_;
std::unordered_map<int, int> appid2role_;
+ CarInfo crr_car_info_;
int allocateSurface();
void setSurfaceSize(const char* role, const char* area);