90 static unsigned int table_flags = 0;
104 static unsigned long engine_pile_hash(
const ENGINE_PILE *c)
121 if(!create)
return 0;
131 ENGINE *
e,
const int *nids,
int num_nids,
int setdefault)
133 int ret = 0, added = 0;
138 if(!int_table_check(table, 1))
209 if(int_table_check(table, 0))
239 #ifndef ENGINE_TABLE_DEBUG
247 int initres, loop = 0;
251 #ifdef ENGINE_TABLE_DEBUG
252 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, nothing "
253 "registered!\n", f, l, nid);
261 if(!int_table_check(table, 0))
goto end;
267 #ifdef ENGINE_TABLE_DEBUG
268 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, using "
269 "ENGINE '%s' cached\n", f, l, nid, fnd->funct->id);
283 #ifdef ENGINE_TABLE_DEBUG
284 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, no "
285 "registered implementations would initialise\n",
304 #ifdef ENGINE_TABLE_DEBUG
305 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, "
306 "setting default to '%s'\n", f, l, nid, ret->
id);
309 #ifdef ENGINE_TABLE_DEBUG
310 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, using "
311 "newly initialised '%s'\n", f, l, nid, ret->
id);
319 if(fnd) fnd->uptodate = 1;
320 #ifdef ENGINE_TABLE_DEBUG
322 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, caching "
323 "ENGINE '%s'\n", f, l, nid, ret->
id);
325 fprintf(stderr,
"engine_table_dbg: %s:%d, nid=%d, caching "
326 "'no matching ENGINE'\n", f, l, nid);
339 dall->
cb(pile->
nid, pile->sk, pile->funct, dall->
arg);