Lines Matching refs:module
0 /* module.c - Module management for libgcrypt.
35 /* Internal function. Generate a new, unique module ID for a module
36 that should be inserted into the module chain starting at
43 gcry_module_t module;
54 /* Search for a module with the current ID. */
55 for (module = modules; module; module = module->next)
56 if (mod_id == module->mod_id)
59 if (! module)
74 /* Add a module specification to the list ENTRIES. The new module has
78 void *spec, void *extraspec, gcry_module_t *module)
95 /* Fill new module entry. */
110 if (module)
111 *module = entry;
128 /* Lookup a module specification by it's ID. After a successful
129 lookup, the module has it's resource counter incremented. */
145 /* Lookup a module specification. After a successful lookup, the
146 module has it's resource counter incremented. FUNC is a function
148 wanted module. */
165 /* Release a module. In case the use-counter reaches zero, destroy
166 the module. Passing MODULE as NULL is a dummy operation (similar
169 _gcry_module_release (gcry_module_t module)
171 if (module && ! --module->counter)
172 _gcry_module_drop (module);
175 /* Add a reference to a module. */
177 _gcry_module_use (gcry_module_t module)
179 ++module->counter;
192 gcry_module_t module;
195 for (module = modules, length = 0; module; module = module->next, length++);
202 for (module = modules, i = 0; i < length; module = module->next, i++)
203 list[i] = module->mod_id;