3030typedef struct
3131{
3232 gint read_access_count ; ///< number of read access
33- guint generation ; ///< generation count, incremented after each write_access
34- gint write_access ; ///< true if a write operation is scheduled or running
33+ guint generation ; ///< generation count, incremented after each write_access
34+ gint write_access ; ///< true if a write operation is scheduled or running
3535} RWSpinLock ;
3636
3737/// acquired a read lock
3838/** \public \memberof RWSpinLock
39- * \return data gegenartion when clock is acquired
39+ * \return data gegenartion when clock is acquired
4040 * \sa read_unlock */
4141guint read_lock (RWSpinLock * this );
4242
@@ -47,7 +47,7 @@ void read_unlock(RWSpinLock* this);
4747
4848/// acquire a write lock
4949/** \public \memberof RWSpinLock
50- * this will increase the generation count
50+ * this will increase the generation count
5151 * \return generation before
5252 * \sa write_unlock*/
5353guint write_lock (RWSpinLock * this );
@@ -275,22 +275,24 @@ write_unlock(RWSpinLock* this)
275275}
276276
277277/// proxy function
278- gchar const * const * j_configuration_get_object_tiers (JConfiguration * config );
279- gchar const * const * j_configuration_get_object_tiers (JConfiguration * config ) {
280- (void ) config ;
278+ gchar const * const * j_configuration_get_object_tiers (JConfiguration * config );
279+ gchar const * const *
280+ j_configuration_get_object_tiers (JConfiguration * config )
281+ {
282+ (void )config ;
281283 return NULL ;
282284}
283285
284286gboolean
285287j_backend_managed_init (JConfiguration * config , JList * object_backends , JManagedBackends * * instance_ptr )
286288{
287289 JListIterator * itr ;
288- gchar const * const * tier_itr ;
290+ gchar const * const * tier_itr ;
289291 JManagedBackends * this ;
290292 struct JBackendWrapper * * b_itr ;
291293 struct JStorageTier * * t_itr ;
292294 const gchar * policy_name = j_configuration_get_object_policy (config );
293- char const * const * policy_args = j_configuration_get_object_policy_args (config );
295+ char const * const * policy_args = j_configuration_get_object_policy_args (config );
294296 JObjectBackendPolicy * (* module_backend_policy_info )(void ) = NULL ;
295297 JObjectBackendPolicy * tmp_policy ;
296298 * instance_ptr = malloc (sizeof (JManagedBackends ));
@@ -432,10 +434,10 @@ gboolean j_backend_managed_object_create(JManagedBackends* this, const gchar* na
432434/// \TODO remove scope return <- just complete virtual
433435gboolean
434436j_backend_managed_object_open (JManagedBackends * this ,
435- const gchar * namespace ,
436- const gchar * path ,
437- JBackend * * backend ,
438- JManagedBackendScope * * scope )
437+ const gchar * namespace ,
438+ const gchar * path ,
439+ JBackend * * backend ,
440+ JManagedBackendScope * * scope )
439441{
440442 struct KVEntry * entry ;
441443 struct JBackendWrapper * wrapper ;
@@ -475,10 +477,10 @@ j_backend_managed_object_open(JManagedBackends* this,
475477
476478gboolean
477479j_backend_managed_object_create (JManagedBackends * this ,
478- const gchar * namespace ,
479- const gchar * path ,
480- JBackend * * backend ,
481- JManagedBackendScope * * scope )
480+ const gchar * namespace ,
481+ const gchar * path ,
482+ JBackend * * backend ,
483+ JManagedBackendScope * * scope )
482484{
483485 gboolean ret = FALSE;
484486 struct JBackendWrapper * wrapper ;
@@ -543,7 +545,7 @@ j_backend_managed_object_close(JManagedBackendScope* this)
543545
544546gboolean
545547j_backend_managed_policy_message (JManagedBackends * this ,
546- const gchar * type , gpointer data , guint length )
548+ const gchar * type , gpointer data , guint length )
547549{
548550 if (this -> policy -> process_message )
549551 {
@@ -565,7 +567,7 @@ j_backend_managed_get_tiers(JManagedBackends* this, JStorageTier const* const**
565567
566568guint
567569j_backend_managed_get_tier (JManagedBackends * this ,
568- const gchar * namespace , const gchar * path )
570+ const gchar * namespace , const gchar * path )
569571{
570572 struct KVEntry * entry ;
571573 EXE (kv_get (this , namespace , path , & entry ),
@@ -631,8 +633,8 @@ kv_rm(JManagedBackends* this, const gchar* namespace, const gchar* key)
631633
632634gboolean
633635j_backend_managed_lock (JManagedBackends * this ,
634- JBackend * * * backends ,
635- guint * length )
636+ JBackend * * * backends ,
637+ guint * length )
636638{
637639 write_lock (& this -> global_lock );
638640 if (backends != NULL )
@@ -705,9 +707,9 @@ j_backend_storage_tier_get_capacity(const JStorageTier* this)
705707
706708gboolean
707709j_backend_managed_object_migrate (JManagedBackends * this ,
708- const gchar * namespace ,
709- const gchar * path ,
710- guint dest )
710+ const gchar * namespace ,
711+ const gchar * path ,
712+ guint dest )
711713{
712714 struct KVEntry * entry ;
713715 struct KVEntry new_entry ;
0 commit comments