diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-09-08 21:19:38 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-09-08 22:53:08 +0200 |
commit | 9b5d2bf6d6656acc06d5aab189515401530b5d02 (patch) | |
tree | 33706c0483ec7126b94518a21c61e19f7533894b /src | |
parent | d087cb3dfb5be4094fbb017376873cac77265760 (diff) | |
download | librda-9b5d2bf6d6656acc06d5aab189515401530b5d02.tar.gz librda-9b5d2bf6d6656acc06d5aab189515401530b5d02.tar.bz2 librda-9b5d2bf6d6656acc06d5aab189515401530b5d02.zip |
configure.ac et al.: Make it possible to enable/disable awareness for the supported remote desktop technologies at build time.
Diffstat (limited to 'src')
-rw-r--r-- | src/rda.c | 21 | ||||
-rw-r--r-- | src/rda_ogon.c | 4 | ||||
-rw-r--r-- | src/rda_ogon.h | 4 | ||||
-rw-r--r-- | src/rda_x2go.c | 4 | ||||
-rw-r--r-- | src/rda_x2go.h | 4 |
5 files changed, 37 insertions, 0 deletions
@@ -56,11 +56,16 @@ rda_session_is_local(void) gboolean rda_session_is_remote (void) { + +#ifdef WITH_X2GO_AWARENESS if (rda_session_is_x2go()) return TRUE; +#endif +#ifdef WITH_OGON_AWARENESS if (rda_session_is_ogon()) return TRUE; +#endif /* possibly add more checks for other remote desktop technologies */ @@ -96,13 +101,17 @@ rda_get_remote_technology_name (void) remote_technology_name = _("local"); break; +#ifdef WITH_X2GO_AWARENESS case REMOTE_TECHNOLOGY_X2GO: remote_technology_name = _("X2Go"); break; +#endif +#ifdef WITH_OGON_AWARENESS case REMOTE_TECHNOLOGY_OGON: remote_technology_name = _("OgonRDP"); break; +#endif case REMOTE_TECHNOLOGY_UNKNOWN: remote_technology_name = _("unknown"); @@ -118,11 +127,15 @@ rda_get_remote_technology_name (void) gboolean rda_session_can_be_suspended(void) { +#ifdef WITH_X2GO_AWARENESS if (rda_session_is_x2go()) return TRUE; +#endif +#ifdef WITH_OGON_AWARENESS if (rda_session_is_ogon()) return TRUE; +#endif /* possibly add more checks for other remote desktop frameworks that have a session suspension feature */ @@ -133,11 +146,15 @@ rda_session_can_be_suspended(void) gboolean rda_session_suspend(void) { +#ifdef WITH_X2GO_AWARENESS if (rda_session_is_x2go()) return rda_session_suspend_x2go(); +#endif +#ifdef WITH_OGON_AWARENESS if (rda_session_is_ogon()) return rda_session_suspend_ogon(); +#endif return FALSE; } @@ -145,11 +162,15 @@ rda_session_suspend(void) gboolean rda_session_terminate(void) { +#ifdef WITH_X2GO_AWARENESS if (rda_session_is_x2go()) return rda_session_terminate_x2go(); +#endif +#ifdef WITH_OGON_AWARENESS if (rda_session_is_ogon()) return rda_session_terminate_ogon(); +#endif return FALSE; } diff --git a/src/rda_ogon.c b/src/rda_ogon.c index ab86b57..f4338f6 100644 --- a/src/rda_ogon.c +++ b/src/rda_ogon.c @@ -26,6 +26,8 @@ #include <rda.h> +#ifdef WITH_OGON_AWARENESS + gboolean rda_session_is_ogon (void) { @@ -92,3 +94,5 @@ rda_session_terminate_ogon(void) return FALSE; } } + +#endif /* WITH_OGON_AWARENESS */
\ No newline at end of file diff --git a/src/rda_ogon.h b/src/rda_ogon.h index 76e60f7..dcd4463 100644 --- a/src/rda_ogon.h +++ b/src/rda_ogon.h @@ -29,6 +29,8 @@ #include <rda.h> +#ifdef WITH_OGON_AWARENESS + gboolean rda_session_is_ogon (void); @@ -38,4 +40,6 @@ rda_session_suspend_ogon (void); gboolean rda_session_terminate_ogon (void); +#endif /* WITH_OGON_AWARENESS */ + #endif /* RDA_OGON_H */ diff --git a/src/rda_x2go.c b/src/rda_x2go.c index 8850aa0..6072888 100644 --- a/src/rda_x2go.c +++ b/src/rda_x2go.c @@ -26,6 +26,8 @@ #include <rda.h> +#ifdef WITH_X2GO_AWARENESS + gboolean rda_session_is_x2go (void) { @@ -92,3 +94,5 @@ rda_session_terminate_x2go(void) return FALSE; } } + +#endif /* WITH_X2GO_AWARENESS */
\ No newline at end of file diff --git a/src/rda_x2go.h b/src/rda_x2go.h index f063a0e..34b8ebc 100644 --- a/src/rda_x2go.h +++ b/src/rda_x2go.h @@ -29,6 +29,8 @@ #include <rda.h> +#ifdef WITH_X2GO_AWARENESS + gboolean rda_session_is_x2go (void); @@ -38,4 +40,6 @@ rda_session_suspend_x2go(void); gboolean rda_session_terminate_x2go(void); +#endif /* WITH_X2GO_AWARENESS */ + #endif /* RDA_X2GO_H */ |