|
libfossil
|
Generic state-with-finalizer holder. More...
#include "util.h"
Data Fields | |
| fsl_finalizer | finalize |
| Finalizer for this->state. | |
| void * | state |
| Arbitrary context-dependent state. | |
Generic state-with-finalizer holder.
Used for binding client-specified state to another object, such that a client-specified finalizer is called with the other object is cleaned up.
| fsl_finalizer fsl_state::finalize |
Finalizer for this->state.
If used, it should be called like:
After which this->state must be treated as if it has been free(3)'d. See fsl_state_finalize().