From 67df8203b206ef5aeef860a0447103600ea69700 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Thu, 14 Sep 2017 14:04:35 +0200 Subject: Moved the AFBClient to singleton original author is Aurelian. Signed-off-by: Marcus Fritzsch --- AFBClient.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'AFBClient.h') diff --git a/AFBClient.h b/AFBClient.h index fa88663..1005432 100644 --- a/AFBClient.h +++ b/AFBClient.h @@ -15,8 +15,18 @@ extern "C" class AFBClient { + explicit AFBClient(); + AFBClient(const AFBClient& that) = delete; + AFBClient& operator=(AFBClient const&); + virtual~AFBClient(); + public: - AFBClient(); + static AFBClient &instance() + { + static AFBClient obj; + return obj; + } + bool init(); void requestSurface(const char *label); void activateSurface(const char *label); -- cgit 1.2.3-korg