XAddConnectionWatch(3X11) | XLIB FUNCTIONS | XAddConnectionWatch(3X11) |
̾??¶
XAddConnectionWatch, XRemoveConnectionWatch, XProcessInternalConnection, XInternalConnectionNumbers - Xlib ????????³??
????¶
typedef void (*XConnectionWatchProc)(display,
client_data, fd, opening, watch_data)
Display *display;
XPointer client_data;
int fd;
Bool opening;
XPointer *watch_data;
Status XAddConnectionWatch(display, procedure,
client_data)
Display *display;
XWatchProc procedure;
XPointer client_data;
Status XRemoveConnectionWatch(display, procedure,
client_data)
Display *display;
XWatchProc procedure;
XPointer client_data;
void XProcessInternalConnection(display, fd)
Display *display;
int fd;
void XProcessInternalConnection(display, fd)
Display *display;
int fd;
Status XInternalConnectionNumbers(display,
fd_return, count_return)
Display *display;
int **fd_return;
int *count_return;
??????¶
- client_data
- ?ղ?Ū?ʥ??饤?????ȥǡ????????ꡣ
- count_return
- ?ե??????ǥ??????ץ??ο????֤???
- display
- X ?????Фؤ???³?????ꡣ
- fd
- ?ե??????ǥ??????ץ??????ꡣ
- fd_return
- ?ե??????ǥ??????ץ????֤????롣
- procedure
- ?ƤӽФ???????³???????ꡣ
????¶
?ؿ? XAddConnectionWatch ?ϻ??ꤷ???ǥ????ץ쥤???Ф??ơ?Xlib ????????³???ץ뤤?ϥ????? ???????Ȥ??????ƤӽФ???????³??????Ͽ???롣???μ?³???ˤϥǥ????ץ쥤?? ???ꤵ?줿 client_data, ??³?Υե??????ǥ??????ץ?????³?Υ????ץ?/?? ?????????????͡??ץ饤?١??Ȥʴƻ??ǡ????ؤΥݥ????Ϥ????롣 ?????? opening ?? True ?ʤ??С????μ?³???ϥץ饤?١??Ȥʥǡ????ؤΥݥ??? watch_data ???? ???????˳?Ǽ???뤳?Ȥ??Ǥ??롣???θ塢Ʊ????³???Ф??Ƥ??μ?³?????Ƥ? ?졢opening ?? False ?Ǥ???????watch_data ???ؤ??????ˤ?Ʊ???ץ饤?١??Ȥʥǡ????ؤΥݥ??? ??????Ǽ?????Ƥ??롣
???δؿ??ϥǥ????ץ쥤???ץ????Ϥ??ĤǤ??Ƥ֤??Ȥ??Ǥ??롣 ??????³??????¸?ߤ??????硢??Ͽ???줿??³???Ϥ??줾??????³???Ф???¨ ?¤˸ƤӽФ????롣???ν????? XAddConnectionWatch ?????????????äƤ??????˹Ԥ????롣 XAddConnectionWatch ?ϼ?³??????Ͽ???????????? 0 ?Ǥʤ????ơ????????֤????????Ǥʤ??????? ?? 0 ???֤???
??Ͽ??????³???????? Xlib ?δؿ????ƤӽФ??ƤϤʤ??ʤ??? ??³????ľ??Ū??????Ū????????³?ξ??֤??Ѥ????ꡢ?ƻ??μ?³?????Ѥ??? ?ꤷ???????η??̤?̤?????Ǥ??롣 Xlib ???????åɤ??Ȥ??褦?˽??????????Ƥ??????硢???μ?³???ϸƤӽФ? ?????Ȥ??˥??å????줿?ǥ????ץ쥤??Ϳ???????뤬???ǥ????ץ쥤?????å? ?????褦?? Xlib ?ؿ????ƤӽФ??ȡ????η??̤?̤?????Ȥʤ롣 ????????ư??Ƥ??륹???åɤ? XLockDisplay ???ȤäƳ????????ǥ????ץ쥤?????å????Ƥ????????Ϥ??θ¤??ǤϤʤ???
?ؿ? XRemoveConnectionWatch ?ϰ?????Ͽ??????³?ƻ???³???????????롣 client_data ?ϡ????μ?³?????ǽ?????Ͽ???줿?Ȥ????Ѥ????줿 client_data ?Ȱ??פ??ʤ????Фʤ??ʤ???
?ؿ? XProcessInternalConnection ????????³?????Ѳ?ǽ?????Ϥ????????롣 ???δؿ???OS?????ϴƻ뵡ǽ(?㤨?? select ?? poll )?ˤ??ä????Ϥ???ǽ?Ǥ??뤳?Ȥ??????????ޤǤϡ???????³???Ф??ƸƤӽ? ???٤??ǤϤʤ????????Ǥʤ??????αƶ???̤?????Ǥ??롣
?ؿ? XInternalConnectionNumbers ?ϻ??ꤷ???ǥ????ץ쥤???Ф??Ƹ??ߥ????ץ??Ƥ?????????³?Υե????? ?ǥ??????ץ??Υꥹ?Ȥ??֤??? ???????Ƥ??ꥹ?Ȥ????פˤʤä????硢 XFree ???ȤäƤ????????????뤳?ȡ? ???δؿ??ϥꥹ?Ȥβ??????????????????? 0 ?Ǥʤ????ơ????????֤??????? ?Ǥʤ??????? 0 ???֤???
??Ϣ????¶
Xlib - C Language X Interface
Release 6.5 | X Version 11 |