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