summaryrefslogtreecommitdiffstats
path: root/AFBClient.h
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-14 14:04:35 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-14 14:04:35 +0200
commit67df8203b206ef5aeef860a0447103600ea69700 (patch)
tree296859991824c5f369df4839895962726a2310f5 /AFBClient.h
parentd5377de21c1eacc164252c2631114815e7c4ae80 (diff)
Moved the AFBClient to singleton
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'AFBClient.h')
-rw-r--r--AFBClient.h12
1 files changed, 11 insertions, 1 deletions
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);