-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbe1fc7
commit b83b35e
Showing
5 changed files
with
199 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
#ifndef XWAIT_H | ||
#define XWAIT_H | ||
|
||
enum xwait_status | ||
{ | ||
XW_STATUS_OK = 0, | ||
XW_STATUS_MISC_ERROR, | ||
XW_STATUS_TIMED_OUT, | ||
XW_STATUS_FAILED_TO_START | ||
}; | ||
|
||
/** | ||
* | ||
* @brief waits for X to start | ||
* @param display number | ||
* @return 0 on error, 1 if X has outputs | ||
* @return status | ||
* | ||
*/ | ||
int | ||
enum xwait_status | ||
wait_for_xserver(int display); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters