Changeset 32eceb4f in mainline for uspace/lib/net/adt/module_map.c
- Timestamp:
- 2010-11-20T22:30:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cb59f787
- Parents:
- 1b22bd4 (diff), 7e1f9b7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/adt/module_map.c
r1b22bd4 r32eceb4f 59 59 * running. 60 60 * @param[in] connect_module The module connecting function. 61 * @return sEOK on success.62 * @return sENOMEM if there is not enough memory left.61 * @return EOK on success. 62 * @return ENOMEM if there is not enough memory left. 63 63 */ 64 64 int 65 add_module(module_ ref *module, modules_refmodules, const char *name,65 add_module(module_t **module, modules_t *modules, const char *name, 66 66 const char *filename, services_t service, task_id_t task_id, 67 67 connect_module_t connect_module) 68 68 { 69 module_ reftmp_module;69 module_t *tmp_module; 70 70 int rc; 71 71 72 tmp_module = (module_ ref) malloc(sizeof(module_t));72 tmp_module = (module_t *) malloc(sizeof(module_t)); 73 73 if (!tmp_module) 74 74 return ENOMEM; … … 100 100 * @param[in] modules The module map. 101 101 * @param[in] name The module name. 102 * @return sThe running module found. It does not have to be102 * @return The running module found. It does not have to be 103 103 * connected. 104 * @return sNULL if there is no such module.104 * @return NULL if there is no such module. 105 105 */ 106 module_ ref get_running_module(modules_refmodules, char *name)106 module_t *get_running_module(modules_t *modules, char *name) 107 107 { 108 module_ refmodule;108 module_t *module; 109 109 110 110 module = modules_find(modules, name, 0); … … 126 126 * 127 127 * @param[in] fname The module full or relative path filename. 128 * @return sThe new module task identifier on success.129 * @return sZero if there is no such module.128 * @return The new module task identifier on success. 129 * @return Zero if there is no such module. 130 130 */ 131 131 task_id_t spawn(const char *fname)
Note:
See TracChangeset
for help on using the changeset viewer.