|
LiteCore
Couchbase Lite cross-platform core implementation
|
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. | |
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.
| void(* C4ExtraInfo::destructor) (void *ptr) |
Client-specific pointer; can be anything.
| void* C4ExtraInfo::pointer |