LiteCore
Couchbase Lite cross-platform core implementation
Loading...
Searching...
No Matches
C4ExtraInfo Struct Reference

Client-defined metadata that can be associated with some objects like C4Database. More...

#include <c4Base.h>

Data Fields

void * pointer
 
void(* destructor )(void *ptr)
 Client-specific pointer; can be anything.
 

Detailed Description

Client-defined metadata that can be associated with some objects like C4Database.

(See c4db_setExtraInfo, c4db_getExtraInfo.) For example, if you have your own "Database" class, you could store a pointer to it in the ExtraInfo of the corresponding C4Database so you can map from it back to your object.

The destructor callback is optional, but gives you a chance to clean up (e.g. release) your own object when the containing C4 object is freed.

Field Documentation

◆ destructor

void(* C4ExtraInfo::destructor) (void *ptr)

Client-specific pointer; can be anything.

◆ pointer

void* C4ExtraInfo::pointer

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