Changes in uspace/drv/test/test1/test1.c [1d6dd2a:74017ce] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test/test1/test1.c
r1d6dd2a r74017ce 37 37 #include <ddf/driver.h> 38 38 #include <ddf/log.h> 39 #include <str.h>40 39 41 40 #include "test1.h" 42 41 43 static errno_t test1_dev_add(ddf_dev_t *dev);44 static errno_t test1_dev_remove(ddf_dev_t *dev);45 static errno_t test1_dev_gone(ddf_dev_t *dev);46 static errno_t test1_fun_online(ddf_fun_t *fun);47 static errno_t test1_fun_offline(ddf_fun_t *fun);42 static int test1_dev_add(ddf_dev_t *dev); 43 static int test1_dev_remove(ddf_dev_t *dev); 44 static int test1_dev_gone(ddf_dev_t *dev); 45 static int test1_fun_online(ddf_fun_t *fun); 46 static int test1_fun_offline(ddf_fun_t *fun); 48 47 49 48 static driver_ops_t driver_ops = { … … 74 73 * @param score Device match score. 75 74 */ 76 static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,75 static int register_fun_verbose(ddf_dev_t *parent, const char *message, 77 76 const char *name, const char *match_id, int match_score, 78 errno_t expected_rc, ddf_fun_t **pfun)77 int expected_rc, ddf_fun_t **pfun) 79 78 { 80 79 ddf_fun_t *fun = NULL; 81 errno_t rc;80 int rc; 82 81 83 82 ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message); … … 142 141 * @return Error code reporting success of the operation. 143 142 */ 144 static errno_t test1_dev_add(ddf_dev_t *dev)143 static int test1_dev_add(ddf_dev_t *dev) 145 144 { 146 145 ddf_fun_t *fun_a; 147 146 test1_t *test1; 148 147 const char *dev_name; 149 errno_t rc;148 int rc; 150 149 151 150 dev_name = ddf_dev_get_name(dev); … … 197 196 } 198 197 199 static errno_t fun_remove(ddf_fun_t *fun, const char *name)200 { 201 errno_t rc;198 static int fun_remove(ddf_fun_t *fun, const char *name) 199 { 200 int rc; 202 201 203 202 ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name); … … 218 217 } 219 218 220 static errno_t fun_unbind(ddf_fun_t *fun, const char *name)221 { 222 errno_t rc;219 static int fun_unbind(ddf_fun_t *fun, const char *name) 220 { 221 int rc; 223 222 224 223 ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name); … … 233 232 } 234 233 235 static errno_t test1_dev_remove(ddf_dev_t *dev)234 static int test1_dev_remove(ddf_dev_t *dev) 236 235 { 237 236 test1_t *test1 = (test1_t *)ddf_dev_data_get(dev); 238 errno_t rc;237 int rc; 239 238 240 239 ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev); … … 261 260 } 262 261 263 static errno_t test1_dev_gone(ddf_dev_t *dev)262 static int test1_dev_gone(ddf_dev_t *dev) 264 263 { 265 264 test1_t *test1 = (test1_t *)ddf_dev_data_get(dev); 266 errno_t rc;265 int rc; 267 266 268 267 ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev); … … 289 288 } 290 289 291 static errno_t test1_fun_online(ddf_fun_t *fun)290 static int test1_fun_online(ddf_fun_t *fun) 292 291 { 293 292 ddf_msg(LVL_DEBUG, "test1_fun_online()"); … … 295 294 } 296 295 297 static errno_t test1_fun_offline(ddf_fun_t *fun)296 static int test1_fun_offline(ddf_fun_t *fun) 298 297 { 299 298 ddf_msg(LVL_DEBUG, "test1_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.