IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OCPersistentStorage Struct Reference

Persistent storage handlers. More...

Public Attributes

FILE *(* open )(const char *path, const char *mode)
 Persistent storage file path. More...
size_t(* read )(void *ptr, size_t size, size_t nmemb, FILE *stream)
 Persistent storage read handler. More...
size_t(* write )(const void *ptr, size_t size, size_t nmemb, FILE *stream)
 Persistent storage write handler. More...
int(* close )(FILE *fp)
 Persistent storage close handler. More...
int(* unlink )(const char *path)
 Persistent storage unlink handler. More...

Detailed Description

Persistent storage handlers.

An APP must provide OCPersistentStorage handler pointers when it calls OCRegisterPersistentStorageHandler. Persistent storage open handler points to default file path. It should check file path and whether the file is symbolic link or no. Application can point to appropriate SVR database path for it's IoTivity Server.

Member Data Documentation

int(* OCPersistentStorage::close)(FILE *fp)

Persistent storage close handler.

FILE*(* OCPersistentStorage::open)(const char *path, const char *mode)

Persistent storage file path.

size_t(* OCPersistentStorage::read)(void *ptr, size_t size, size_t nmemb, FILE *stream)

Persistent storage read handler.

int(* OCPersistentStorage::unlink)(const char *path)

Persistent storage unlink handler.

size_t(* OCPersistentStorage::write)(const void *ptr, size_t size, size_t nmemb, FILE *stream)

Persistent storage write handler.

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