Mistake on this page? Email us
pt_userdata_api.h File Reference

Protocol translator API for client's data. More...

Go to the source code of this file.

Data Structures

struct  pt_userdata_s
 Contains fields for client user data. More...
 

Macros

#define PT_API_VERSION   2
 
#define PT_USERDATA_API_H
 

Typedefs

typedef void(* pt_userdata_free_cb_t) (void *data)
 The user-supplied memory deallocation function for userdata. More...
 
typedef struct pt_userdata_s pt_userdata_t
 Contains fields for client user data. More...
 

Functions

pt_userdata_tpt_api_create_userdata (void *data, pt_userdata_free_cb_t free_userdata_cb)
 Used to create the pt_userdata_s structure. More...
 

Detailed Description

Protocol translator API for client's data.

Functions in this file may be used to set user data to devices and resources. A free callback needs to be provided. It's called automatically when the objects containing user data are deleted.