tbmqtt_cache.h 666 B

12345678910111213141516
  1. #ifndef __TBMQTT_CACHE_H__
  2. #define __TBMQTT_CACHE_H__
  3. #include "tbmqtt_ringbuffer.h"
  4. int tbmqtt_cache_open(char* dir, char* table_name, void** handle);
  5. int tbmqtt_cache_read_one_payload(void* handle, char* table_name, tbmqtt_ringbuffer_element_t* e, int* idx);
  6. int tbmqtt_cache_write_one_payload(void* handle, char* table_name, tbmqtt_ringbuffer_element_t e);
  7. int tbmqtt_cache_delete_one_payload(void* handle, char* table_name,int rowid);
  8. int tbmqtt_cache_get_payload_nb(void* handle, char* table_name, int* nb);
  9. int tbmqtt_cache_get_memory_size(void* handle, long* size);
  10. void tbmqtt_cache_close(void* handle);
  11. int tbmqtt_cache_free_memory(void* handle);
  12. #endif