/* * * XScreenSaver code * */ #include "Ecore_X_ScreenSaver.h" /* Make a query for extention presence */ /*Ecore_X_ScreenSaver */ int ecore_x_scrnsaver_query(Ecore_X_Screensaver_Query *info_query) { Bool ext_result; /* Query extention */ ext_result = XScreenSaverQueryExtension(ecore_x_disp, info_query->event_basep, info_query->error_basep); /* Query version and status */ info_query->ScreenSaver_status = XScreenSaverQueryVersion(ecore_x_disp, info_query->major_version, info_query->major_version); if (!ext_result) return 1; else return 0; }