本文整理汇总了C++中REQUEST_AT_LEAST_SIZE函数的典型用法代码示例。如果您正苦于以下问题:C++ REQUEST_AT_LEAST_SIZE函数的具体用法?C++ REQUEST_AT_LEAST_SIZE怎么用?C++ REQUEST_AT_LEAST_SIZE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了REQUEST_AT_LEAST_SIZE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: ProcSetEventMask
int
ProcSetEventMask(ClientPtr client)
{
REQUEST(fsSetEventMaskReq);
REQUEST_AT_LEAST_SIZE(fsSetEventMaskReq);
if (stuff->event_mask & ~AllEventMasks) {
SendErrToClient(client, FSBadEventMask, (pointer) &stuff->event_mask);
return FSBadEventMask;
}
client->eventmask = stuff->event_mask;
return client->noClientException;
}
开发者ID:shanelle794,项目名称:theqvd,代码行数:13,代码来源:events.c
示例2: SProcPoly
/* The following routine is used for all Poly drawing requests
(except FillPoly, which uses a different request format) */
int
SProcPoly(ClientPtr client)
{
char n;
REQUEST(xPolyPointReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xPolyPointReq);
swapl(&stuff->drawable, n);
swapl(&stuff->gc, n);
SwapRestS(stuff);
return((* ProcVector[stuff->reqType])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:15,代码来源:swapreq.c
示例3: SProcXChangeDeviceKeyMapping
int _X_COLD
SProcXChangeDeviceKeyMapping(ClientPtr client)
{
unsigned int count;
REQUEST(xChangeDeviceKeyMappingReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeDeviceKeyMappingReq);
count = stuff->keyCodes * stuff->keySymsPerKeyCode;
REQUEST_FIXED_SIZE(xChangeDeviceKeyMappingReq, count * sizeof(CARD32));
SwapLongs((CARD32 *) (&stuff[1]), count);
return (ProcXChangeDeviceKeyMapping(client));
}
开发者ID:jon-turney,项目名称:xorg-server,代码行数:13,代码来源:chgkmap.c
示例4: SProcRRConfigureProviderProperty
static int _X_COLD
SProcRRConfigureProviderProperty(ClientPtr client)
{
REQUEST(xRRConfigureProviderPropertyReq);
REQUEST_AT_LEAST_SIZE(xRRConfigureProviderPropertyReq);
swaps(&stuff->length);
swapl(&stuff->provider);
swapl(&stuff->property);
/* TODO: no way to specify format? */
SwapRestL(stuff);
return ProcRandrVector[stuff->randrReqType] (client);
}
开发者ID:mirror,项目名称:xserver,代码行数:13,代码来源:rrsdispatch.c
示例5: SProcSetClipRectangles
int
SProcSetClipRectangles(ClientPtr client)
{
char n;
REQUEST(xSetClipRectanglesReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xSetClipRectanglesReq);
swapl(&stuff->gc, n);
swaps(&stuff->xOrigin, n);
swaps(&stuff->yOrigin, n);
SwapRestS(stuff);
return((* ProcVector[X_SetClipRectangles])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例6: SProcXISetFocus
int
SProcXISetFocus(ClientPtr client)
{
REQUEST(xXISetFocusReq);
REQUEST_AT_LEAST_SIZE(xXISetFocusReq);
swaps(&stuff->length);
swaps(&stuff->deviceid);
swapl(&stuff->focus);
swapl(&stuff->time);
return ProcXISetFocus(client);
}
开发者ID:coffee8651,项目名称:turbovnc,代码行数:13,代码来源:xisetdevfocus.c
示例7: SProcCreateGC
int
SProcCreateGC(ClientPtr client)
{
char n;
REQUEST(xCreateGCReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xCreateGCReq);
swapl(&stuff->gc, n);
swapl(&stuff->drawable, n);
swapl(&stuff->mask, n);
SwapRestL(stuff);
return((* ProcVector[X_CreateGC])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例8: SProcSetDashes
int
SProcSetDashes(ClientPtr client)
{
char n;
REQUEST(xSetDashesReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xSetDashesReq);
swapl(&stuff->gc, n);
swaps(&stuff->dashOffset, n);
swaps(&stuff->nDashes, n);
return((* ProcVector[X_SetDashes])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例9: SProcChangeWindowAttributes
int
SProcChangeWindowAttributes(ClientPtr client)
{
char n;
REQUEST(xChangeWindowAttributesReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xChangeWindowAttributesReq);
swapl(&stuff->window, n);
swapl(&stuff->valueMask, n);
SwapRestL(stuff);
return((* ProcVector[X_ChangeWindowAttributes])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例10: SProcConfigureWindow
int
SProcConfigureWindow(ClientPtr client)
{
char n;
REQUEST(xConfigureWindowReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xConfigureWindowReq);
swapl(&stuff->window, n);
swaps(&stuff->mask, n);
SwapRestL(stuff);
return((* ProcVector[X_ConfigureWindow])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例11: SProcPolyText
int
SProcPolyText(register ClientPtr client)
{
register char n;
REQUEST(xPolyTextReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xPolyTextReq);
swapl(&stuff->drawable, n);
swapl(&stuff->gc, n);
swaps(&stuff->x, n);
swaps(&stuff->y, n);
return((* ProcVector[stuff->reqType])(client));
}
开发者ID:Magister,项目名称:x11rdp_xorg71,代码行数:13,代码来源:swapreq.c
示例12: SProcFreeColors
int
SProcFreeColors(ClientPtr client)
{
char n;
REQUEST(xFreeColorsReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xFreeColorsReq);
swapl(&stuff->cmap, n);
swapl(&stuff->planeMask, n);
SwapRestL(stuff);
return((* ProcVector[X_FreeColors])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例13: SProcShapeRectangles
static int
SProcShapeRectangles(ClientPtr client)
{
REQUEST(xShapeRectanglesReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xShapeRectanglesReq);
swapl(&stuff->dest);
swaps(&stuff->xOff);
swaps(&stuff->yOff);
SwapRestS(stuff);
return ProcShapeRectangles(client);
}
开发者ID:coffee8651,项目名称:turbovnc,代码行数:13,代码来源:shape.c
示例14: SProcXagCreate
static
int SProcXagCreate(
ClientPtr client)
{
register int n;
REQUEST (xXagCreateReq);
swaps (&stuff->length, n);
REQUEST_AT_LEAST_SIZE (xXagCreateReq);
swapl (&stuff->app_group, n);
swapl (&stuff->attrib_mask, n);
SwapRestL (stuff);
return ProcXagCreate (client);
}
开发者ID:mcr,项目名称:xorg-xvnc4,代码行数:13,代码来源:appgroup.c
示例15: SProcXkbSetIndicatorMap
static int
SProcXkbSetIndicatorMap(ClientPtr client)
{
register int n;
REQUEST(xkbSetIndicatorMapReq);
swaps(&stuff->length,n);
REQUEST_AT_LEAST_SIZE(xkbSetIndicatorMapReq);
swaps(&stuff->deviceSpec,n);
swapl(&stuff->which,n);
return ProcXkbSetIndicatorMap(client);
}
开发者ID:Magister,项目名称:x11rdp_xorg71,代码行数:13,代码来源:xkbSwap.c
示例16: SProcImageText
int
SProcImageText(ClientPtr client)
{
char n;
REQUEST(xImageTextReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xImageTextReq);
swapl(&stuff->drawable, n);
swapl(&stuff->gc, n);
swaps(&stuff->x, n);
swaps(&stuff->y, n);
return((* ProcVector[stuff->reqType])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:13,代码来源:swapreq.c
示例17: SProcFillPoly
/* cannot use SProcPoly for this one, because xFillPolyReq
is longer than xPolyPointReq, and we don't want to swap
the difference as shorts! */
int
SProcFillPoly(ClientPtr client)
{
char n;
REQUEST(xFillPolyReq);
swaps(&stuff->length, n);
REQUEST_AT_LEAST_SIZE(xFillPolyReq);
swapl(&stuff->drawable, n);
swapl(&stuff->gc, n);
SwapRestS(stuff);
return((* ProcVector[X_FillPoly])(client));
}
开发者ID:Agnarr,项目名称:xserver,代码行数:16,代码来源:swapreq.c
示例18: ProcRRCreateMode
int
ProcRRCreateMode (ClientPtr client)
{
REQUEST(xRRCreateModeReq);
xRRCreateModeReply rep;
WindowPtr pWin;
ScreenPtr pScreen;
rrScrPrivPtr pScrPriv;
xRRModeInfo *modeInfo;
long units_after;
char *name;
int error, rc;
RRModePtr mode;
REQUEST_AT_LEAST_SIZE (xRRCreateModeReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
if (rc != Success)
return rc;
pScreen = pWin->drawable.pScreen;
pScrPriv = rrGetScrPriv(pScreen);
modeInfo = &stuff->modeInfo;
name = (char *) (stuff + 1);
units_after = (stuff->length - bytes_to_int32(sizeof (xRRCreateModeReq)));
/* check to make sure requested name fits within the data provided */
if (bytes_to_int32(modeInfo->nameLength) > units_after)
return BadLength;
mode = RRModeCreateUser (pScreen, modeInfo, name, &error);
if (!mode)
return error;
rep.type = X_Reply;
rep.pad0 = 0;
rep.sequenceNumber = client->sequence;
rep.length = 0;
rep.mode = mode->mode.id;
if (client->swapped)
{
int n;
swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n);
swapl(&rep.mode, n);
}
WriteToClient(client, sizeof(xRRCreateModeReply), (char *)&rep);
/* Drop out reference to this mode */
RRModeDestroy (mode);
return client->noClientException;
}
开发者ID:fenghaitao,项目名称:xserver-with-gl-accelerated-xephyr,代码行数:51,代码来源:rrmode.c
示例19: dmxProcSetFontPath
static int
dmxProcSetFontPath(ClientPtr client)
{
unsigned char *ptr;
unsigned long nbytes, total, n;
long nfonts;
int i, result;
unsigned char *oldFontPath, *tmpFontPath;
int nOldPaths;
int lenOldPaths;
REQUEST(xSetFontPathReq);
REQUEST_AT_LEAST_SIZE(xSetFontPathReq);
nbytes = (client->req_len << 2) - sizeof(xSetFontPathReq);
total = nbytes;
ptr = (unsigned char *) &stuff[1];
nfonts = stuff->nFonts;
while (--nfonts >= 0) {
if ((total == 0) || (total < (n = (*ptr + 1))))
return BadLength;
total -= n;
ptr += n;
}
if (total >= 4)
return BadLength;
GetFontPath(serverClient, &nOldPaths, &lenOldPaths, &tmpFontPath);
oldFontPath = malloc(nOldPaths + lenOldPaths);
memmove(oldFontPath, tmpFontPath, nOldPaths + lenOldPaths);
result = SetFontPath(client, stuff->nFonts, (unsigned char *) &stuff[1]);
if (!result) {
int error = 0;
for (i = 0; i < dmxNumScreens; i++)
if ((result = dmxCheckFontPath(&dmxScreens[i], &error)))
break;
if (result) {
/* Restore old fontpath in the DMX server */
SetFontPath(client, nOldPaths, oldFontPath);
client->errorValue = error;
}
}
free(oldFontPath);
return result;
}
开发者ID:AmesianX,项目名称:xorg-server,代码行数:51,代码来源:dmxfont.c
示例20: SProcXkbSetDeviceInfo
static int
SProcXkbSetDeviceInfo(ClientPtr client)
{
register int n;
REQUEST(xkbSetDeviceInfoReq);
swaps(&stuff->length,n);
REQUEST_AT_LEAST_SIZE(xkbSetDeviceInfoReq);
swaps(&stuff->deviceSpec,n);
swaps(&stuff->change,n);
swaps(&stuff->nDeviceLedFBs,n);
return ProcXkbSetDeviceInfo(client);
}
开发者ID:Magister,项目名称:x11rdp_xorg71,代码行数:14,代码来源:xkbSwap.c
注:本文中的REQUEST_AT_LEAST_SIZE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论