26
26
extern "C" {
27
27
#endif
28
28
29
- NCNN_EXPORT const char * ncnn_version ();
29
+ NCNN_EXPORT const char * ncnn_version (void );
30
30
31
31
/* allocator api */
32
32
typedef struct __ncnn_allocator_t * ncnn_allocator_t ;
@@ -38,14 +38,14 @@ struct NCNN_EXPORT __ncnn_allocator_t
38
38
void (* fast_free )(ncnn_allocator_t allocator , void * ptr );
39
39
};
40
40
41
- NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_pool_allocator ();
42
- NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_unlocked_pool_allocator ();
41
+ NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_pool_allocator (void );
42
+ NCNN_EXPORT ncnn_allocator_t ncnn_allocator_create_unlocked_pool_allocator (void );
43
43
NCNN_EXPORT void ncnn_allocator_destroy (ncnn_allocator_t allocator );
44
44
45
45
/* option api */
46
46
typedef struct __ncnn_option_t * ncnn_option_t ;
47
47
48
- NCNN_EXPORT ncnn_option_t ncnn_option_create ();
48
+ NCNN_EXPORT ncnn_option_t ncnn_option_create (void );
49
49
NCNN_EXPORT void ncnn_option_destroy (ncnn_option_t opt );
50
50
51
51
NCNN_EXPORT int ncnn_option_get_num_threads (const ncnn_option_t opt );
@@ -63,7 +63,7 @@ NCNN_EXPORT void ncnn_option_set_use_vulkan_compute(ncnn_option_t opt, int use_v
63
63
/* mat api */
64
64
typedef struct __ncnn_mat_t * ncnn_mat_t ;
65
65
66
- NCNN_EXPORT ncnn_mat_t ncnn_mat_create ();
66
+ NCNN_EXPORT ncnn_mat_t ncnn_mat_create (void );
67
67
NCNN_EXPORT ncnn_mat_t ncnn_mat_create_1d (int w , ncnn_allocator_t allocator );
68
68
NCNN_EXPORT ncnn_mat_t ncnn_mat_create_2d (int w , int h , ncnn_allocator_t allocator );
69
69
NCNN_EXPORT ncnn_mat_t ncnn_mat_create_3d (int w , int h , int c , ncnn_allocator_t allocator );
@@ -140,7 +140,7 @@ NCNN_EXPORT void ncnn_blob_get_shape(const ncnn_blob_t blob, int* dims, int* w,
140
140
/* paramdict api */
141
141
typedef struct __ncnn_paramdict_t * ncnn_paramdict_t ;
142
142
143
- NCNN_EXPORT ncnn_paramdict_t ncnn_paramdict_create ();
143
+ NCNN_EXPORT ncnn_paramdict_t ncnn_paramdict_create (void );
144
144
NCNN_EXPORT void ncnn_paramdict_destroy (ncnn_paramdict_t pd );
145
145
146
146
NCNN_EXPORT int ncnn_paramdict_get_type (const ncnn_paramdict_t pd , int id );
@@ -165,7 +165,7 @@ struct NCNN_EXPORT __ncnn_datareader_t
165
165
size_t (* read )(ncnn_datareader_t dr , void * buf , size_t size );
166
166
};
167
167
168
- NCNN_EXPORT ncnn_datareader_t ncnn_datareader_create ();
168
+ NCNN_EXPORT ncnn_datareader_t ncnn_datareader_create (void );
169
169
#if NCNN_STDIO
170
170
NCNN_EXPORT ncnn_datareader_t ncnn_datareader_create_from_stdio (FILE * fp );
171
171
#endif /* NCNN_STDIO */
@@ -206,7 +206,7 @@ struct NCNN_EXPORT __ncnn_layer_t
206
206
int (* forward_inplace_n )(const ncnn_layer_t layer , ncnn_mat_t * bottom_top_blobs , int n , const ncnn_option_t opt );
207
207
};
208
208
209
- NCNN_EXPORT ncnn_layer_t ncnn_layer_create ();
209
+ NCNN_EXPORT ncnn_layer_t ncnn_layer_create (void );
210
210
NCNN_EXPORT ncnn_layer_t ncnn_layer_create_by_typeindex (int typeindex );
211
211
#if NCNN_STRING
212
212
NCNN_EXPORT ncnn_layer_t ncnn_layer_create_by_type (const char * type );
@@ -269,7 +269,7 @@ struct __ncnn_net_t
269
269
ncnn_net_custom_layer_factory_t custom_layer_factory ;
270
270
};
271
271
272
- NCNN_EXPORT ncnn_net_t ncnn_net_create ();
272
+ NCNN_EXPORT ncnn_net_t ncnn_net_create (void );
273
273
NCNN_EXPORT void ncnn_net_destroy (ncnn_net_t net );
274
274
275
275
NCNN_EXPORT ncnn_option_t ncnn_net_get_option (ncnn_net_t net );
0 commit comments