VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxService/VBoxServicePipeBuf.h@ 36331

Last change on this file since 36331 was 36321, checked in by vboxsync, 14 years ago

VBoxServicePipeBuf.*: nits.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/* $Id: VBoxServicePipeBuf.h 36321 2011-03-21 10:42:55Z vboxsync $ */
2/** @file
3 * VBoxServicePipeBuf - Pipe buffering.
4 */
5
6/*
7 * Copyright (C) 2010-2011 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___VBoxServicePipeBuf_h
19#define ___VBoxServicePipeBuf_h
20
21#include "VBoxServiceInternal.h"
22
23int VBoxServicePipeBufInit(PVBOXSERVICECTRLEXECPIPEBUF pBuf, bool fNeedNotificationPipe);
24int VBoxServicePipeBufRead(PVBOXSERVICECTRLEXECPIPEBUF pBuf,
25 uint8_t *pbBuffer, uint32_t cbBuffer, uint32_t *pcbToRead);
26int VBoxServicePipeBufWriteToBuf(PVBOXSERVICECTRLEXECPIPEBUF pBuf,
27 uint8_t *pbData, uint32_t cbData, bool fPendingClose, uint32_t *pcbWritten);
28int VBoxServicePipeBufWriteToPipe(PVBOXSERVICECTRLEXECPIPEBUF pBuf, RTPIPE hPipe,
29 size_t *pcbWritten, size_t *pcbLeft);
30bool VBoxServicePipeBufIsEnabled(PVBOXSERVICECTRLEXECPIPEBUF pBuf);
31bool VBoxServicePipeBufIsClosing(PVBOXSERVICECTRLEXECPIPEBUF pBuf);
32int VBoxServicePipeBufSetStatus(PVBOXSERVICECTRLEXECPIPEBUF pBuf, bool fEnabled);
33int VBoxServicePipeBufWaitForEvent(PVBOXSERVICECTRLEXECPIPEBUF pBuf, RTMSINTERVAL cMillies);
34void VBoxServicePipeBufDestroy(PVBOXSERVICECTRLEXECPIPEBUF pBuf);
35
36#endif /* !___VBoxServicePipeBuf_h */
37
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette