VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.h

Last change on this file was 98103, checked in by vboxsync, 16 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: */
2/** @file
3 * VBoxServicePropCache - Guest property cache.
4 */
5
6/*
7 * Copyright (C) 2010-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef GA_INCLUDED_SRC_common_VBoxService_VBoxServicePropCache_h
29#define GA_INCLUDED_SRC_common_VBoxService_VBoxServicePropCache_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34#include "VBoxServiceInternal.h"
35
36#ifdef VBOX_WITH_GUEST_PROPS
37
38/** @name VGSVCPROPCACHE_FLAG_XXX - Guest Property Cache Flags.
39 * @{ */
40/** Indicates wheter a guest property is temporary and either should
41 * - a) get a "reset" value assigned (via VBoxServicePropCacheUpdateEntry)
42 * as soon as the property cache gets destroyed, or
43 * - b) get deleted when no reset value is specified.
44 */
45# define VGSVCPROPCACHE_FLAGS_TEMPORARY RT_BIT(1)
46/** Indicates whether a property every time needs to be updated, regardless
47 * if its real value changed or not. */
48# define VGSVCPROPCACHE_FLAGS_ALWAYS_UPDATE RT_BIT(2)
49/** The guest property gets deleted when
50 * - a) the property cache gets destroyed, or
51 * - b) the VM gets reset / shutdown / destroyed.
52 */
53# define VGSVCPROPCACHE_FLAGS_TRANSIENT RT_BIT(3)
54/** @} */
55
56int VGSvcPropCacheCreate(PVBOXSERVICEVEPROPCACHE pCache, uint32_t uClientId);
57int VGSvcPropCacheUpdateEntry(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName, uint32_t fFlags, const char *pszValueReset);
58int VGSvcPropCacheUpdate(PVBOXSERVICEVEPROPCACHE pCache, const char *pszName, const char *pszValueFormat, ...);
59int VGSvcPropCacheUpdateByPath(PVBOXSERVICEVEPROPCACHE pCache, const char *pszValue, uint32_t fFlags,
60 const char *pszPathFormat, ...);
61int VGSvcPropCacheFlush(PVBOXSERVICEVEPROPCACHE pCache);
62void VGSvcPropCacheDestroy(PVBOXSERVICEVEPROPCACHE pCache);
63#endif /* VBOX_WITH_GUEST_PROPS */
64
65#endif /* !GA_INCLUDED_SRC_common_VBoxService_VBoxServicePropCache_h */
66
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use