Changes in uspace/drv/test/test2/test2.c [b7fd2a0:267f235] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test/test2/test2.c
rb7fd2a0 r267f235 40 40 #define NAME "test2" 41 41 42 static errno_t test2_dev_add(ddf_dev_t *dev);43 static errno_t test2_dev_remove(ddf_dev_t *dev);44 static errno_t test2_dev_gone(ddf_dev_t *dev);45 static errno_t test2_fun_online(ddf_fun_t *fun);46 static errno_t test2_fun_offline(ddf_fun_t *fun);42 static int test2_dev_add(ddf_dev_t *dev); 43 static int test2_dev_remove(ddf_dev_t *dev); 44 static int test2_dev_gone(ddf_dev_t *dev); 45 static int test2_fun_online(ddf_fun_t *fun); 46 static int test2_fun_offline(ddf_fun_t *fun); 47 47 48 48 static driver_ops_t driver_ops = { … … 77 77 * @param score Device match score. 78 78 */ 79 static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,79 static int register_fun_verbose(ddf_dev_t *parent, const char *message, 80 80 const char *name, const char *match_id, int match_score, ddf_fun_t **pfun) 81 81 { 82 82 ddf_fun_t *fun; 83 errno_t rc;83 int rc; 84 84 85 85 ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message); … … 118 118 * @return Always EOK. 119 119 */ 120 static errno_t plug_unplug(void *arg)120 static int plug_unplug(void *arg) 121 121 { 122 122 test2_t *test2 = (test2_t *) arg; 123 123 ddf_fun_t *fun_a; 124 errno_t rc;124 int rc; 125 125 126 126 async_usleep(1000); … … 157 157 } 158 158 159 static errno_t fun_remove(ddf_fun_t *fun, const char *name)160 { 161 errno_t rc;159 static int fun_remove(ddf_fun_t *fun, const char *name) 160 { 161 int rc; 162 162 163 163 ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name); … … 178 178 } 179 179 180 static errno_t fun_unbind(ddf_fun_t *fun, const char *name)181 { 182 errno_t rc;180 static int fun_unbind(ddf_fun_t *fun, const char *name) 181 { 182 int rc; 183 183 184 184 ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name); … … 193 193 } 194 194 195 static errno_t test2_dev_add(ddf_dev_t *dev)195 static int test2_dev_add(ddf_dev_t *dev) 196 196 { 197 197 test2_t *test2; … … 224 224 } 225 225 226 static errno_t test2_dev_remove(ddf_dev_t *dev)226 static int test2_dev_remove(ddf_dev_t *dev) 227 227 { 228 228 test2_t *test2 = (test2_t *)ddf_dev_data_get(dev); 229 errno_t rc;229 int rc; 230 230 231 231 ddf_msg(LVL_DEBUG, "test2_dev_remove(%p)", dev); … … 258 258 } 259 259 260 static errno_t test2_dev_gone(ddf_dev_t *dev)260 static int test2_dev_gone(ddf_dev_t *dev) 261 261 { 262 262 test2_t *test2 = (test2_t *)ddf_dev_data_get(dev); 263 errno_t rc;263 int rc; 264 264 265 265 ddf_msg(LVL_DEBUG, "test2_dev_gone(%p)", dev); … … 293 293 294 294 295 static errno_t test2_fun_online(ddf_fun_t *fun)295 static int test2_fun_online(ddf_fun_t *fun) 296 296 { 297 297 ddf_msg(LVL_DEBUG, "test2_fun_online()"); … … 299 299 } 300 300 301 static errno_t test2_fun_offline(ddf_fun_t *fun)301 static int test2_fun_offline(ddf_fun_t *fun) 302 302 { 303 303 ddf_msg(LVL_DEBUG, "test2_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.