summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-25 10:32:05 +0000
committerpuppetmaster <puppetmaster>2005-07-25 10:32:05 +0000
commitc93fbeb50dd4e350ace2bfcbc4387a18f4c62dd8 (patch)
treef0b0731d530f8105ce071abc688a05c18be2d03f
parentfix for #include on only one local library (diff)
downloadelock-c93fbeb50dd4e350ace2bfcbc4387a18f4c62dd8.tar.xz
adding ecore_x_query_extention
-rw-r--r--ecore_x_scrnsaver.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ecore_x_scrnsaver.c b/ecore_x_scrnsaver.c
index ffb3f4c..9d4690c 100644
--- a/ecore_x_scrnsaver.c
+++ b/ecore_x_scrnsaver.c
@@ -6,3 +6,18 @@
#include "Ecore_X_ScreenSaver.h"
+
+int
+ecore_x_scrnsaver_query_extension(void)
+{
+ Bool Queryresult;
+ int *event_basep;
+ int *error_basep;
+
+ Queryresult = XScreenSaverQueryExtension(ecore_x_disp,event_basep, error_basep);
+
+ if (Queryresult == 0)
+ return 0;
+ else
+ return 1;
+}