Xorn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Attributes | List of all members
xorn_pointer Struct Reference

Arbitrary reference-counted pointer. More...

#include <xornstorage.h>

Public Attributes

void * ptr
 The actual pointer. More...
 
void(* incref )(void *ptr)
 A function which is called when the pointer is copied. More...
 
void(* decref )(void *ptr)
 A function which is called when a copy of the pointer is deleted. More...
 

Detailed Description

Arbitrary reference-counted pointer.

xorn_add_object and xorn_set_object_data do not “steal” a reference to the pointer.

Definition at line 154 of file xornstorage.h.

Member Data Documentation

xorn_pointer::decref

A function which is called when a copy of the pointer is deleted.

May be NULL.

Definition at line 157 of file xornstorage.h.

xorn_pointer::incref

A function which is called when the pointer is copied.

May be NULL.

Definition at line 156 of file xornstorage.h.

xorn_pointer::ptr

The actual pointer.

Definition at line 155 of file xornstorage.h.


The documentation for this struct was generated from the following files: