MQTTPersistenceDefault.h 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. /*******************************************************************************
  2. * Copyright (c) 2009, 2013 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. /** 8.3 filesystem */
  17. #define MESSAGE_FILENAME_LENGTH 8
  18. /** Extension of the filename */
  19. #define MESSAGE_FILENAME_EXTENSION ".msg"
  20. /* prototypes of the functions for the default file system persistence */
  21. int pstopen(void** handle, const char* clientID, const char* serverURI, void* context);
  22. int pstclose(void* handle);
  23. int pstput(void* handle, char* key, int bufcount, char* buffers[], int buflens[]);
  24. int pstget(void* handle, char* key, char** buffer, int* buflen);
  25. int pstremove(void* handle, char* key);
  26. int pstkeys(void* handle, char*** keys, int* nkeys);
  27. int pstclear(void* handle);
  28. int pstcontainskey(void* handle, char* key);
  29. int pstmkdir(char *pPathname);