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