+static void
+run_in_thread(GrpcClient *client)
+{
+ grpc::Status status = client->Wait();
+}
+
+static void
+app_status_callback(::agl_shell_ipc::AppStateResponse app_response, void *data)
+{
+ (void) data;
+
+ std::cout << " >> AppStateResponse app_id " <<
+ app_response.app_id() << ", with state " <<
+ app_response.state() << std::endl;
+
+ // there's no implicit deactivation for an activation of another app so
+ // assume that another application got activate we are also deactived
+ if (app_response.state() == 2 && app_response.app_id() != my_app_id) {
+ // suspend pipeline
+ std::cout << "Suspending gstreamer pipeline" << std::endl;
+ }
+}
+
+