Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/adt/module_map.c

    r61bfc370 r1bfd3d3  
    6363 */
    6464int
    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,
     65add_module(module_t **module, modules_t *modules, const char *name,
     66    const char *filename, services_t service, task_id_t task_id,
    6767    connect_module_t connect_module)
    6868{
     
    104104 * @return              NULL if there is no such module.
    105105 */
    106 module_t *get_running_module(modules_t *modules, uint8_t *name)
     106module_t *get_running_module(modules_t *modules, char *name)
    107107{
    108108        module_t *module;
     
    113113
    114114        if (!module->task_id) {
    115                 module->task_id = net_spawn(module->filename);
     115                module->task_id = spawn(module->filename);
    116116                if (!module->task_id)
    117117                        return NULL;
     
    123123}
    124124
    125 /** Start the given module.
     125/** Starts the given module.
    126126 *
    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  *
     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.
    132130 */
    133 task_id_t net_spawn(const uint8_t *fname)
     131task_id_t spawn(const char *fname)
    134132{
    135133        task_id_t id;
    136134        int rc;
    137135       
    138         rc = task_spawnl(&id, (const char *) fname, (const char *) fname, NULL);
     136        rc = task_spawnl(&id, fname, fname, NULL);
    139137        if (rc != EOK)
    140138                return 0;
Note: See TracChangeset for help on using the changeset viewer.