• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*******************************************************************************
2  * Copyright (c) 2009, 2018 IBM Corp.
3  *
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * and Eclipse Distribution License v1.0 which accompany this distribution.
7  *
8  * The Eclipse Public License is available at
9  *    http://www.eclipse.org/legal/epl-v10.html
10  * and the Eclipse Distribution License is available at
11  *   http://www.eclipse.org/org/documents/edl-v10.php.
12  *
13  * Contributors:
14  *    Ian Craggs - initial API and implementation and/or initial documentation
15  *******************************************************************************/
16 
17 #if !defined(MQTTPERSISTENCEDEFAULT_H)
18 #define MQTTPERSISTENCEDEFAULT_H
19 
20 /** 8.3 filesystem */
21 #define MESSAGE_FILENAME_LENGTH 8
22 /** Extension of the filename */
23 #define MESSAGE_FILENAME_EXTENSION ".msg"
24 
25 /* prototypes of the functions for the default file system persistence */
26 int pstopen(void** handle, const char* clientID, const char* serverURI, void* context);
27 int pstclose(void* handle);
28 int pstput(void* handle, char* key, int bufcount, char* buffers[], int buflens[]);
29 int pstget(void* handle, char* key, char** buffer, int* buflen);
30 int pstremove(void* handle, char* key);
31 int pstkeys(void* handle, char*** keys, int* nkeys);
32 int pstclear(void* handle);
33 int pstcontainskey(void* handle, char* key);
34 
35 int pstmkdir(char *pPathname);
36 
37 #endif
38 
39