Lines Matching defs:clientp

36  *	dga_rtn_active(clientp)
37 * Dga_window clientp;
40 * dga_rtn_cached(clientp)
41 * Dga_window clientp;
44 * dga_rtn_devinfo(clientp)
45 * Dga_window clientp;
48 * dga_rtn_devtype(clientp, type, name)
49 * Dga_window clientp;
54 * dga_rtn_dimensions(clientp, width, height, linebytes)
55 * Dga_window clientp;
61 * dga_rtn_grab(clientp)
62 * Dga_window clientp;
65 * dga_rtn_pixels(clientp)
66 * Dga_window clientp;
69 * dga_rtn_ungrab(clientp)
70 * Dga_window clientp;
73 * _dga_rtn_map(clientp)
74 * Dga_window clientp;
77 * _dga_rtn_unmap(clientp)
78 * Dga_window clientp;
110 extern int dgai_win_check_multiple_grab(_Dga_window clientp, int drawableGrabber);
141 _Dga_window clientp = (struct dga_window *)clientpi;
143 if ((clientp->rtn_flags & RTN_MAPPED))
177 _Dga_window clientp = (struct dga_window *)clientpi;
179 if (RTN_INFOP(clientp)->cached)
180 if (clientp->c_rtncachseq != *(clientp->s_rtncachseq_p)) {
181 clientp->c_rtncachseq = *(clientp->s_rtncachseq_p);
214 _Dga_window clientp = (struct dga_window *)clientpi;
216 return (((char *)clientp->rtn_info) + RTN_INFOP(clientp)->device_offset);
223 _Dga_window clientp = (struct dga_window *)clientpi;
225 return (((char *)clientp->rtn_info) + RTN_INFOP(clientp)->device_offset);
252 _Dga_window clientp = (struct dga_window *)clientpi;
254 *type = RTN_INFOP(clientp)->device;
255 *name = (char *) RTN_INFOP(clientp)->scr_name;
284 _Dga_window clientp = (struct dga_window *)clientpi;
286 *width = RTN_INFOP(clientp)->width;
287 *height = RTN_INFOP(clientp)->height;
288 *linebytes = RTN_INFOP(clientp)->linebytes;
294 _Dga_window clientp = (struct dga_window *)clientpi;
296 return(RTN_INFOP(clientp)->bitsperpixel);
342 _Dga_window clientp = (struct dga_window *)clientpi;
344 if ((clientp == (_Dga_window) NULL)) {
352 /* Determine the window associated with this clientp */
353 infop = (WXINFO *) clientp->w_info;
365 if (!_dga_rtn_map(clientp)) {
376 if (clientp->rtn_flags & RTN_GRABBED)
385 if (!_dga_is_X_window(clientp->w_token, &dpy, &win)) {
420 if (!_dga_rtn_map(clientp)) {
431 clientp->rtn_flags |= RTN_GRABBED;
456 _Dga_window clientp = (struct dga_window *)clientpi;
458 return ((void *)clientp->rtn_pixels);
493 _Dga_window clientp = (struct dga_window *)clientpi;
495 return (dgai_rtn_ungrab_common(clientp, 0));
499 dgai_rtn_ungrab_common(clientp, drawableGrabber)
500 _Dga_window clientp;
515 if ((clientp == (Dga_window) NULL)) {
526 if ((clientp->rtn_flags & RTN_GRABBED) == 0)
532 status &= _dga_rtn_unmap(clientp);
538 clientp->s_rtnseq_p = &(clientp->c_rtnseq);
541 /* Determine the window associated with this clientp */
542 infop = (WXINFO *) clientp->w_info;
553 if (!_dga_is_X_window(clientp->w_token, &dpy, &win)) {
564 if (!dgai_win_check_multiple_grab(clientp,drawableGrabber))
569 clientp->rtn_flags = 0;
618 _dga_rtn_map(clientp)
619 _Dga_window clientp;
641 if (clientp == (_Dga_window) NULL) {
652 if ((clientp->rtn_flags & RTN_MAPPED))
656 /* Determine the window associated with this clientp */
657 winfop = (WXINFO *) clientp->w_info;
660 /* Initialise clientp's retained info structure - refer dga.h */
661 clientp->rtn_fd = 0; /* I don't think that it is needed any more */
662 clientp->rtn_size = infop->s_size;
663 clientp->c_rtnseq = 0;
664 clientp->s_rtnseq_p = (u_int *)&(infop->s_modified);
665 clientp->c_rtncachseq = 0;
666 clientp->s_rtncachseq_p = (u_int *)&(infop->s_cacheseq);
667 clientp->rtn_info = (caddr_t)infop;
668 clientp->rtn_pixels = (caddr_t)(infop->s_pixels);
669 clientp->rtn_flags |= RTN_MAPPED;
679 if (!_dga_is_X_window(clientp->w_token, &dpy, &win)) {
828 clientp->rtn_fd = filefd;
829 clientp->rtn_size = infop->s_size;
830 clientp->c_rtnseq = 0;
831 clientp->s_rtnseq_p = &(infop->s_modified);
832 clientp->c_rtncachseq = 0;
833 clientp->s_rtncachseq_p = &(infop->s_cacheseq);
834 clientp->rtn_info = (void *) infop;
835 clientp->rtn_pixels = (void *) pixels;
836 clientp->rtn_flags |= RTN_MAPPED;
876 _dga_rtn_unmap(clientp)
877 _Dga_window clientp;
882 if ((clientp->rtn_flags & RTN_MAPPED) == 0)
892 if (munmap(clientp->rtn_pixels, clientp->rtn_size)) {
898 if (munmap(clientp->rtn_info, pagesize)) {
905 clientp->rtn_info = (void *) NULL;
906 clientp->c_rtnseq = 0;
907 clientp->s_rtnseq_p = (u_int *) &(clientp->s_rtnseq_p);
908 clientp->c_rtncachseq = 0;
909 clientp->s_rtncachseq_p = &(clientp->c_rtncachseq);
910 clientp->rtn_pixels = (void*) NULL;
911 (void) close(clientp->rtn_fd);
912 clientp->rtn_fd = -1;
913 clientp->rtn_flags &= ~(RTN_MAPPED);
914 clientp->rtn_flags |= RTN_MAPCHG;
979 _Dga_window clientp = (struct dga_window *)clientpi;
980 WXINFO *infop = (WXINFO *) clientp->w_info;