Changes in uspace/lib/net/adt/module_map.c [1bfd3d3:61bfc370] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/adt/module_map.c
r1bfd3d3 r61bfc370 63 63 */ 64 64 int 65 add_module(module_t **module, modules_t *modules, const char*name,66 const char*filename, services_t service, task_id_t task_id,65 add_module(module_t **module, modules_t *modules, const uint8_t *name, 66 const uint8_t *filename, services_t service, task_id_t task_id, 67 67 connect_module_t connect_module) 68 68 { … … 104 104 * @return NULL if there is no such module. 105 105 */ 106 module_t *get_running_module(modules_t *modules, char*name)106 module_t *get_running_module(modules_t *modules, uint8_t *name) 107 107 { 108 108 module_t *module; … … 113 113 114 114 if (!module->task_id) { 115 module->task_id = spawn(module->filename);115 module->task_id = net_spawn(module->filename); 116 116 if (!module->task_id) 117 117 return NULL; … … 123 123 } 124 124 125 /** Start sthe given module.125 /** Start the given module. 126 126 * 127 * @param[in] fname The module full or relative path filename. 128 * @return The new module task identifier on success. 129 * @return Zero if there is no such module. 127 * @param[in] fname The module full or relative path filename. 128 * 129 * @return The new module task identifier on success. 130 * @return Zero if there is no such module. 131 * 130 132 */ 131 task_id_t spawn(const char*fname)133 task_id_t net_spawn(const uint8_t *fname) 132 134 { 133 135 task_id_t id; 134 136 int rc; 135 137 136 rc = task_spawnl(&id, fname,fname, NULL);138 rc = task_spawnl(&id, (const char *) fname, (const char *) fname, NULL); 137 139 if (rc != EOK) 138 140 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.