@@ -273,7 +273,8 @@ schema_add_space(
273273 return -1 ;
274274}
275275
276- int tarantool_schema_add_spaces (tarantool_schema * schema_obj , const char * data ,
276+ int tarantool_schema_add_spaces (struct tarantool_schema * schema_obj ,
277+ const char * data ,
277278 uint32_t size ) {
278279 struct mh_schema_space_t * schema = schema_obj -> space_hash ;
279280 const char * tuple = data ;
@@ -370,7 +371,8 @@ schema_add_index(
370371 return -1 ;
371372}
372373
373- int tarantool_schema_add_indexes (tarantool_schema * schema_obj , const char * data ,
374+ int tarantool_schema_add_indexes (struct tarantool_schema * schema_obj ,
375+ const char * data ,
374376 uint32_t size ) {
375377 struct mh_schema_space_t * schema = schema_obj -> space_hash ;
376378 const char * tuple = data ;
@@ -387,7 +389,7 @@ int tarantool_schema_add_indexes(tarantool_schema *schema_obj, const char *data,
387389 return 0 ;
388390}
389391
390- int32_t tarantool_schema_get_sid_by_string (tarantool_schema * schema_obj ,
392+ int32_t tarantool_schema_get_sid_by_string (struct tarantool_schema * schema_obj ,
391393 const char * space_name ,
392394 uint32_t space_name_len ) {
393395 struct mh_schema_space_t * schema = schema_obj -> space_hash ;
@@ -399,7 +401,7 @@ int32_t tarantool_schema_get_sid_by_string(tarantool_schema *schema_obj,
399401 return space -> space_number ;
400402}
401403
402- int32_t tarantool_schema_get_iid_by_string (tarantool_schema * schema_obj ,
404+ int32_t tarantool_schema_get_iid_by_string (struct tarantool_schema * schema_obj ,
403405 uint32_t sid , const char * index_name ,
404406 uint32_t index_name_len ) {
405407 struct mh_schema_space_t * schema = schema_obj -> space_hash ;
@@ -416,17 +418,17 @@ int32_t tarantool_schema_get_iid_by_string(tarantool_schema *schema_obj,
416418 return index -> index_number ;
417419}
418420
419- tarantool_schema * tarantool_schema_new (int is_persistent ) {
420- tarantool_schema * obj = pemalloc (sizeof (tarantool_schema * ), 1 );
421+ struct tarantool_schema * tarantool_schema_new (int is_persistent ) {
422+ struct tarantool_schema * obj = pemalloc (sizeof (struct tarantool_schema * ), 1 );
421423 obj -> space_hash = mh_schema_space_new ();
422424 return obj ;
423425}
424426
425- void tarantool_schema_flush (tarantool_schema * obj ) {
427+ void tarantool_schema_flush (struct tarantool_schema * obj ) {
426428 schema_space_free (obj -> space_hash );
427429}
428430
429- void tarantool_schema_delete (tarantool_schema * obj , int is_persistent ) {
431+ void tarantool_schema_delete (struct tarantool_schema * obj , int is_persistent ) {
430432 if (obj == NULL ) return ;
431433 schema_space_free (obj -> space_hash );
432434 mh_schema_space_delete (obj -> space_hash );
0 commit comments