Paho MQTT C Client Library: MQTTClient_persistence Struct Reference

| Paho MQTT C Client Library

Data Fields
MQTTClient_persistence Struct Reference

A structure containing the function pointers to a persistence implementation and the context or state that will be shared across all the persistence functions. More...

`#include <MQTTClientPersistence.h>`

## Data Fields
void * | context
Persistence_open | popen
Persistence_close | pclose
Persistence_put | pput
Persistence_get | pget
Persistence_remove | premove
Persistence_keys | pkeys
Persistence_clear | pclear
Persistence_containskey | pcontainskey

## Detailed Description

A structure containing the function pointers to a persistence implementation and the context or state that will be shared across all the persistence functions.

## Field Documentation

## ◆ context

void* context

A pointer to any data required to initialize the persistent store.

## ◆ popen

Persistence_open popen

A function pointer to an implementation of Persistence_open().

## ◆ pclose

Persistence_close pclose

A function pointer to an implementation of Persistence_close().

## ◆ pput

Persistence_put pput

A function pointer to an implementation of Persistence_put().

## ◆ pget

Persistence_get pget

A function pointer to an implementation of Persistence_get().

## ◆ premove

Persistence_remove premove

A function pointer to an implementation of Persistence_remove().

## ◆ pkeys

Persistence_keys pkeys

A function pointer to an implementation of Persistence_keys().

## ◆ pclear

Persistence_clear pclear

A function pointer to an implementation of Persistence_clear().

## ◆ pcontainskey

Persistence_containskey pcontainskey

A function pointer to an implementation of Persistence_containskey().

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

- MQTTClientPersistence.h