Changes in uspace/srv/net/structures/module_map.h [aadf01e:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/structures/module_map.h
raadf01e ra000878c 60 60 * @see generic_char_map.h 61 61 */ 62 GENERIC_CHAR_MAP_DECLARE( modules, module_t)62 GENERIC_CHAR_MAP_DECLARE( modules, module_t ) 63 63 64 64 /** Module structure. … … 67 67 /** Module task identifier if running. 68 68 */ 69 task_id_t 69 task_id_t task_id; 70 70 /** Module service identifier. 71 71 */ 72 services_t 72 services_t service; 73 73 /** Module phone if running and connected. 74 74 */ 75 int 75 int phone; 76 76 /** Usage counter. 77 77 */ 78 int 78 int usage; 79 79 /** Module name. 80 80 */ 81 const char * 81 const char * name; 82 82 /** Module full path filename. 83 83 */ 84 const char * 84 const char * filename; 85 85 /** Connecting function. 86 86 */ 87 connect_module_t * 87 connect_module_t * connect_module; 88 88 }; 89 89 … … 99 99 * @returns ENOMEM if there is not enough memory left. 100 100 */ 101 int add_module(module_ref * module, modules_ref modules, const char * name, const 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, const char * name, const char * filename, services_t service, task_id_t task_id, connect_module_t * connect_module ); 102 102 103 103 /** Searches and returns the specified module. … … 109 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 113 /** Starts the given module. … … 116 116 * @returns 0 if there is no such module. 117 117 */ 118 task_id_t spawn(const char * fname);118 task_id_t spawn( const char * fname ); 119 119 120 120 #endif
Note:
See TracChangeset
for help on using the changeset viewer.