Clean up and renaming
[oweals/gnunet.git] / src / include / gnunet_datastore_plugin.h
index 9c35a15775f7ddf3297c1d10d90306cf0952c34c..113f6b2f28b3425190246a2359e06d4b686bcccb 100644 (file)
      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
@@ -53,7 +55,7 @@
  */
 typedef void
 (*GNUNET_DATASTORE_DiskUtilizationChange) (void *cls,
-                                          int delta);
+                                           int delta);
 
 
 /**
@@ -77,7 +79,6 @@ struct GNUNET_DATASTORE_PluginEnvironment
    * Closure.
    */
   void *cls;
-
 };
 
 
@@ -123,7 +124,7 @@ typedef int
  */
 typedef void
 (*PluginEstimateSize) (void *cls,
-                      unsigned long long *estimate);
+                       unsigned long long *estimate);
 
 
 /**
@@ -138,10 +139,10 @@ typedef void
  */
 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);
 
 
 /**
@@ -186,8 +187,8 @@ typedef void
  */
 typedef void
 (*PluginKeyProcessor) (void *cls,
-                      const struct GNUNET_HashCode *key,
-                      unsigned int count);
+                       const struct GNUNET_HashCode *key,
+                       unsigned int count);
 
 
 /**
@@ -199,7 +200,7 @@ typedef void
  */
 typedef void
 (*PluginGetKeys) (void *cls,
-                 PluginKeyProcessor proc,
+                  PluginKeyProcessor proc,
                   void *proc_cls);
 
 
@@ -275,8 +276,8 @@ typedef void
  */
 typedef void
 (*PluginGetRandom) (void *cls,
-                   PluginDatumProcessor proc,
-                   void *proc_cls);
+                    PluginDatumProcessor proc,
+                    void *proc_cls);
 
 
 /**
@@ -313,7 +314,6 @@ typedef void
  */
 struct GNUNET_DATASTORE_PluginFunctions
 {
-
   /**
    * Closure to use for all of the following callbacks
    * (except "next_request").