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