#include <gnunet_state_service.h>
Data Fields | |
| int(* | read )(struct GNUNET_GE_Context *ectx, const char *name, void **result) |
| int(* | append )(struct GNUNET_GE_Context *ectx, const char *name, int len, const void *block) |
| int(* | write )(struct GNUNET_GE_Context *ectx, const char *name, int len, const void *block) |
| int(* | unlink )(struct GNUNET_GE_Context *ectx, const char *name) |
Definition at line 42 of file gnunet_state_service.h.
| int(* GNUNET_State_ServiceAPI::read)(struct GNUNET_GE_Context *ectx, const char *name, void **result) |
Read the contents of a bucket to a buffer.
| fn | the hashcode representing the entry | |
| result | the buffer to write the result to (*result should be NULL, sufficient space is allocated) |
Referenced by needBootstrap(), provide_module_sqstore_mysql(), provide_module_state(), publish_unavailable_mark(), and update_module_datastore().
| int(* GNUNET_State_ServiceAPI::append)(struct GNUNET_GE_Context *ectx, const char *name, int len, const void *block) |
Append content to file.
| fn | the key for the entry | |
| len | the number of bytes in block | |
| block | the data to store |
Referenced by provide_module_state().
| int(* GNUNET_State_ServiceAPI::write)(struct GNUNET_GE_Context *ectx, const char *name, int len, const void *block) |
Write content to a file.
| fn | the key for the entry | |
| len | the number of bytes in block | |
| block | the data to store |
Referenced by needBootstrap(), provide_module_state(), publish_unavailable_mark(), release_module_sqstore_mysql(), and update_module_datastore().
| int(* GNUNET_State_ServiceAPI::unlink)(struct GNUNET_GE_Context *ectx, const char *name) |
Free space in the database by removing one file
| name | the hashcode representing the name of the file (without directory) |
Referenced by provide_module_sqstore_mysql(), provide_module_state(), publish_unavailable_mark(), and remove_unavailable_mark().
1.5.1