Rev 4350 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4350 | Rev 4756 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | */ |
86 | */ |
87 | connect_module_t * connect_module; |
87 | connect_module_t * connect_module; |
88 | }; |
88 | }; |
89 | 89 | ||
90 | /** Adds module to the module map. |
90 | /** Adds module to the module map. |
91 | * @param module The module structure added. Output parameter. |
91 | * @param[out] module The module structure added. |
92 | * @param modules The module map. Input parameter. |
92 | * @param[in] modules The module map. |
93 | * @param name The module name. Input parameter. |
93 | * @param[in] name The module name. |
94 | * @param filename The full path filename. Input parameter. |
94 | * @param[in] filename The full path filename. |
95 | * @param service The module service. Input parameter. |
95 | * @param[in] service The module service. |
96 | * @param task_id The module current task identifier. Zero (0) means not running. Input parameter. |
96 | * @param[in] task_id The module current task identifier. Zero (0) means not running. |
97 | * @param connect_module The module connecting function. Input parameter. |
97 | * @param[in] connect_module The module connecting function. |
98 | * @returns EOK on success. |
98 | * @returns EOK on success. |
99 | * @returns ENOMEM if there is not enough memory left. |
99 | * @returns ENOMEM if there is not enough memory left. |
100 | */ |
100 | */ |
101 | int add_module( module_ref * module, modules_ref modules, char * name, char * filename, services_t service, task_id_t task_id, connect_module_t * connect_module ); |
101 | int add_module( module_ref * module, modules_ref modules, char * name, char * filename, services_t service, task_id_t task_id, connect_module_t * connect_module ); |
102 | 102 | ||
103 | /** Searches and returns the specified module. |
103 | /** Searches and returns the specified module. |
104 | * If the module is not running, the module filaname is spawned. |
104 | * If the module is not running, the module filaname is spawned. |
105 | * If the module is not connected, the connect_function is called. |
105 | * If the module is not connected, the connect_function is called. |
106 | * @param modules The module map. Input parameter. |
106 | * @param[in] modules The module map. |
107 | * @param name The module name. Input parameter. |
107 | * @param[in] name The module name. |
108 | * @returns The running module found. It does not have to be connected. |
108 | * @returns The running module found. It does not have to be connected. |
109 | * @returns NULL if there is no such module. |
109 | * @returns NULL if there is no such module. |
110 | */ |
110 | */ |
111 | module_ref get_running_module( modules_ref modules, char * name ); |
111 | module_ref get_running_module( modules_ref modules, char * name ); |
112 | 112 | ||
113 | /** Starts the given module. |
113 | /** Starts the given module. |
114 | * @param fname The module full or relative path filename. Input parameter. |
114 | * @param[in] fname The module full or relative path filename. |
115 | * @returns The new module task identifier on success. |
115 | * @returns The new module task identifier on success. |
116 | * @returns 0 if there is no such module. |
116 | * @returns 0 if there is no such module. |
117 | */ |
117 | */ |
118 | task_id_t spawn( char * fname ); |
118 | task_id_t spawn( char * fname ); |
119 | 119 |