@@ -78,7 +78,7 @@ typedef struct _VipsConfigure {
78
78
79
79
/* Max size of pipe.
80
80
*/
81
- int64 pipe_read_limit ;
81
+ gint64 pipe_read_limit ;
82
82
83
83
/* Trace libvips operation cache actions.
84
84
*/
@@ -90,7 +90,7 @@ typedef struct _VipsConfigure {
90
90
91
91
/* Maximum memory to use for operation caching.
92
92
*/
93
- int64 cache_max_mem ;
93
+ gint64 cache_max_mem ;
94
94
95
95
/* Maximum number of open files we allow in the cache.
96
96
*/
@@ -160,35 +160,33 @@ vips_configure_class_init( VipsConfigureClass *class )
160
160
G_STRUCT_OFFSET ( VipsConfigure , operation_unblock ),
161
161
NULL );
162
162
163
- VIPS_ARG_BOOL ( class , "leak" , 5 ,
164
- _ ( "Leak" ),
165
- _ ( "Report any leaks on exit" ),
166
- VIPS_ARGUMENT_OPTIONAL_INPUT ,
167
- G_STRUCT_OFFSET ( VipsConfigure , leak ),
168
- FALSE );
169
-
170
- VIPS_ARG_BOOL ( class , "profile" , 5 ,
171
- _ ( "Profile" ),
172
- _ ( "Write profiling data on exit" ),
173
- VIPS_ARGUMENT_OPTIONAL_INPUT ,
174
- G_STRUCT_OFFSET ( VipsConfigure , profile ),
175
- FALSE );
176
-
177
163
VIPS_ARG_INT ( class , "concurrency" , 5 ,
178
164
_ ( "Concurrency" ),
179
165
_ ( "Set threadpool size" ),
180
166
VIPS_ARGUMENT_OPTIONAL_INPUT ,
181
167
G_STRUCT_OFFSET ( VipsConfigure , concurrency ),
182
168
-1 );
183
169
170
+ VIPS_ARG_INT64 ( class , "pipe_read_limit" , 5 ,
171
+ _ ( "Pipe read limit" ),
172
+ _ ( "Maxiumum number of bytes to buffer for pipe read" ),
173
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
174
+ G_STRUCT_OFFSET ( VipsConfigure , pipe_read_limit ),
175
+ -1 );
184
176
185
- /* Max size of pipe.
186
- */
187
- int64 pipe_read_limit ;
177
+ VIPS_ARG_INT ( class , "cache_max" , 5 ,
178
+ _ ( "Cache max size" ),
179
+ _ ( "Maxium number of operations to cache" ),
180
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
181
+ G_STRUCT_OFFSET ( VipsConfigure , cache_max ),
182
+ -1 );
188
183
189
- /* Trace libvips operation cache actions.
190
- */
191
- gboolean cache_trace ;
184
+ VIPS_ARG_INT ( class , "cache_max_mem" , 5 ,
185
+ _ ( "Cache max memory size" ),
186
+ _ ( "Maxium number of operations to cache" ),
187
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
188
+ G_STRUCT_OFFSET ( VipsConfigure , cache_max ),
189
+ -1 );
192
190
193
191
/* Number of recent operations to cache.
194
192
*/
@@ -208,6 +206,7 @@ static void
208
206
vips_configure_init ( VipsConfigure * configure )
209
207
{
210
208
configure -> concurrency = -1 ;
209
+ configure -> pipe_read_limit = -1 ;
211
210
}
212
211
213
212
/**
0 commit comments