aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Expand)AuthorFilesLines
2016-05-10Refactoring requests and context handlingJosé Bollo2-42/+37
2016-05-09improves namingJosé Bollo1-3/+3
2016-05-04try to avoid unnecessary copyJosé Bollo1-2/+2
2016-05-04Switch to libsystemd eventsJosé Bollo2-65/+18
2016-04-27first add of asynchonous handlingJosé Bollo1-0/+1
2016-04-27adds store/unstore for afb_reqJosé Bollo1-1/+17
2016-04-19refactoring context handlingJosé Bollo2-22/+37
2016-04-19prepares event propagationJosé Bollo3-11/+100
2016-04-15use upoll for event loopJosé Bollo3-13/+14
2016-04-08refactoring req interfaceJosé Bollo1-8/+19
2016-04-07improves file handlingJosé Bollo1-3/+3
2016-04-05new main loop in placeJosé Bollo2-2/+4
2016-04-05fix context valuesJosé Bollo1-1/+1
2016-04-05start epoll integration by upollJosé Bollo2-8/+31
2016-04-05refactored verbosityJosé Bollo1-1/+1
2016-04-04work in progress, session handlingJosé Bollo2-2/+41
2016-04-02refactoring in progress (tbf)José Bollo1-0/+65
2016-04-01work in progress (tbf)José Bollo3-243/+19
2016-04-01work in progress (tbf)José Bollo2-54/+104
2016-04-01work in progressJosé Bollo2-40/+17
2016-03-31refactoring (in progress, tbf)José Bollo2-14/+7
2016-03-30refactoring (in progress, tbf)José Bollo1-4/+0
2016-03-30renaming of field apiJosé Bollo1-1/+1
2016-03-30refactor context usageJosé Bollo1-8/+0
2016-03-30removes uneeded dataJosé Bollo1-1/+0
2016-03-30refactoringJosé Bollo2-47/+72
2016-03-29splitting rest-api in two partsJosé Bollo1-4/+0
2016-03-23AFB_error: improves mangementJosé Bollo1-1/+1
2016-03-23cleanup: remove unused definitionsJosé Bollo1-25/+19
2016-03-23session: removes file handlingJosé Bollo1-0/+2
2016-03-23several improvementsJosé Bollo1-3/+0
2016-03-23simplification of configJosé Bollo2-9/+1
2016-03-23moves more helpers from config to helper-apiJosé Bollo1-10/+0
2016-03-23removes save optionJosé Bollo1-2/+0
2016-03-23moves helpers from config to helper-apiJosé Bollo1-34/+34
2016-03-23http-svc: renamingJosé Bollo1-3/+2
2016-03-18http-svc: work in progress proposalJosé Bollo1-2/+5
2016-03-17typoJosé Bollo1-1/+1
2016-03-17main: change location of AFB_options definitionJosé Bollo1-8/+0
2016-03-17local-def: dispatch some definitionsJosé Bollo1-4/+0
2016-03-17removed private api and fix some few warningsJosé Bollo1-7/+0
2016-02-23refactor cookie to add #portJosé Bollo1-1/+1
2016-02-15add option for signaling readynessJosé Bollo1-0/+1
2016-02-14adds mode managementJosé Bollo1-1/+1
2016-02-09Adds a new option: modeJosé Bollo1-0/+2
2016-02-08avoid use of keyword "private"José Bollo1-2/+2
2016-02-08typo: minor improvementJosé Bollo1-2/+2
2016-02-08removes unused smack fieldJosé Bollo1-1/+0
2016-01-26GetPostPath OngoingFulup Ar Foll1-0/+1
2015-12-30Added EmptyPost handlingFulup Ar Foll1-1/+1
;SetAppFloat(&context, request, &reply); return status.ok(); } bool GrpcClient::SetAppNormal(const std::string& app_id) { agl_shell_ipc::NormalRequest request; request.set_app_id(app_id); grpc::ClientContext context; ::agl_shell_ipc::NormalResponse reply; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->SetAppNormal(&context, request, &reply); return status.ok(); } bool GrpcClient::SetAppFullscreen(const std::string& app_id) { agl_shell_ipc::FullscreenRequest request; request.set_app_id(app_id); grpc::ClientContext context; ::agl_shell_ipc::FullscreenResponse reply; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->SetAppFullscreen(&context, request, &reply); return status.ok(); } bool GrpcClient::SetAppOnOutput(const std::string& app_id, const std::string &output) { agl_shell_ipc::AppOnOutputRequest request; request.set_app_id(app_id); request.set_output(output); grpc::ClientContext context; ::agl_shell_ipc::AppOnOutputResponse reply; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->SetAppOnOutput(&context, request, &reply); return status.ok(); } bool GrpcClient::SetAppPosition(const std::string& app_id, int32_t x, int32_t y) { agl_shell_ipc::AppPositionRequest request; request.set_app_id(app_id); request.set_x(x); request.set_y(y); grpc::ClientContext context; ::agl_shell_ipc::AppPositionResponse reply; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->SetAppPosition(&context, request, &reply); return status.ok(); } bool GrpcClient::SetAppScale(const std::string& app_id, int32_t width, int32_t height) { agl_shell_ipc::AppScaleRequest request; request.set_app_id(app_id); request.set_width(width); request.set_height(height); grpc::ClientContext context; ::agl_shell_ipc::AppScaleResponse reply; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->SetAppScale(&context, request, &reply); return status.ok(); } bool GrpcClient::SetAppSplit(const std::string& app_id, uint32_t orientation, int32_t width, int32_t sticky, const std::string& output_name) { agl_shell_ipc::SplitRequest request; request.set_app_id(app_id); request.set_output_name(output_name); request.set_tile_orientation(orientation); request.set_width(width); request.set_sticky(sticky); grpc::ClientContext context; ::agl_shell_ipc::SplitResponse reply; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->SetAppSplit(&context, request, &reply); return status.ok(); } grpc::Status GrpcClient::Wait(void) { return reader->Await(); } void GrpcClient::AppStatusState(Callback callback) { reader->AppStatusState(callback); } std::vector<std::string> GrpcClient::GetOutputs() { grpc::ClientContext context; std::vector<std::string> v; ::agl_shell_ipc::OutputRequest request; ::agl_shell_ipc::ListOutputResponse response; if (wait_for_ready_) { context.set_wait_for_ready(true); context.set_deadline(std::chrono::system_clock::now() + deadline_); } grpc::Status status = m_stub->GetOutputs(&context, request, &response); if (!status.ok()) return std::vector<std::string>(); for (int i = 0; i < response.outputs_size(); i++) { ::agl_shell_ipc::OutputResponse rresponse = response.outputs(i); v.push_back(rresponse.name()); } return v; }