WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @author Christian Grothoff
*/
typedef void
(*GNUNET_DATASTORE_DiskUtilizationChange) (void *cls,
- int delta);
+ int delta);
/**
* of this type as the first and only argument to the
* entry point of each datastore plugin.
*/
-struct GNUNET_DATASTORE_PluginEnvironment
-{
+struct GNUNET_DATASTORE_PluginEnvironment {
/**
* Configuration to use.
*/
* Closure.
*/
void *cls;
-
};
*/
typedef void
(*PluginEstimateSize) (void *cls,
- unsigned long long *estimate);
+ unsigned long long *estimate);
/**
*/
typedef void
(*PluginPutCont) (void *cls,
- const struct GNUNET_HashCode *key,
- uint32_t size,
- int status,
- const char *msg);
+ const struct GNUNET_HashCode *key,
+ uint32_t size,
+ int status,
+ const char *msg);
/**
*/
typedef void
(*PluginKeyProcessor) (void *cls,
- const struct GNUNET_HashCode *key,
- unsigned int count);
+ const struct GNUNET_HashCode *key,
+ unsigned int count);
/**
*/
typedef void
(*PluginGetKeys) (void *cls,
- PluginKeyProcessor proc,
+ PluginKeyProcessor proc,
void *proc_cls);
*/
typedef void
(*PluginGetRandom) (void *cls,
- PluginDatumProcessor proc,
- void *proc_cls);
+ PluginDatumProcessor proc,
+ void *proc_cls);
/**
* Each plugin is required to return a pointer to a struct of this
* type as the return value from its entry point.
*/
-struct GNUNET_DATASTORE_PluginFunctions
-{
-
+struct GNUNET_DATASTORE_PluginFunctions {
/**
* Closure to use for all of the following callbacks
* (except "next_request").