mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 15:47:20 +02:00
Add a note about GAMEMODE_AUTO and blocking calls
This commit is contained in:
parent
ddc802573a
commit
ddecc89f10
@ -42,6 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
* 0 if the request was sent successfully
|
* 0 if the request was sent successfully
|
||||||
* -1 if the request failed
|
* -1 if the request failed
|
||||||
*
|
*
|
||||||
|
* GAMEMODE_AUTO can be defined to make the above two functions apply during static init and
|
||||||
|
* destruction, as appropriate. In this configuration, errors will be printed to stderr
|
||||||
|
*
|
||||||
* int gamemode_query_status() - Query the current status of gamemode
|
* int gamemode_query_status() - Query the current status of gamemode
|
||||||
* 0 if gamemode is inactive
|
* 0 if gamemode is inactive
|
||||||
* 1 if gamemode is active
|
* 1 if gamemode is active
|
||||||
@ -64,6 +67,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*
|
*
|
||||||
* const char* gamemode_error_string() - Get an error string
|
* const char* gamemode_error_string() - Get an error string
|
||||||
* returns a string describing any of the above errors
|
* returns a string describing any of the above errors
|
||||||
|
*
|
||||||
|
* Note: All the above requests can be blocking - dbus requests can and will block while the daemon
|
||||||
|
* handles the request. It is not recommended to make these calls in performance critical code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user