Add Chromium-only Blender WebEngine parity work
This commit is contained in:
49
blender-5.2.0/intern/memutil/MEM_RefCountedC-Api.h
Normal file
49
blender-5.2.0/intern/memutil/MEM_RefCountedC-Api.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/** \file
|
||||
* \ingroup intern_memutil
|
||||
*
|
||||
* Interface for C access to functionality relating to shared objects in the foundation library.
|
||||
*/
|
||||
|
||||
#ifndef __MEM_REFCOUNTEDC_API_H__
|
||||
#define __MEM_REFCOUNTEDC_API_H__
|
||||
|
||||
/** A pointer to a private object. */
|
||||
using MEM_TObjectPtr = struct MEM_TOpaqueObject *;
|
||||
/** A pointer to a shared object. */
|
||||
using MEM_TRefCountedObjectPtr = MEM_TObjectPtr;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns the reference count of this object.
|
||||
* \param shared: The object to query.
|
||||
* \return The current reference count.
|
||||
*/
|
||||
extern int MEM_RefCountedGetRef(MEM_TRefCountedObjectPtr shared);
|
||||
|
||||
/**
|
||||
* Increases the reference count of this object.
|
||||
* \param shared: The object to query.
|
||||
* \return The new reference count.
|
||||
*/
|
||||
extern int MEM_RefCountedIncRef(MEM_TRefCountedObjectPtr shared);
|
||||
|
||||
/**
|
||||
* Decreases the reference count of this object.
|
||||
* If the reference count reaches zero, the object self-destructs.
|
||||
* \param shared: The object to query.
|
||||
* \return The new reference count.
|
||||
*/
|
||||
extern int MEM_RefCountedDecRef(MEM_TRefCountedObjectPtr shared);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __MEM_REFCOUNTEDC_API_H__
|
||||
Reference in New Issue
Block a user