Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test/test1/test1.c

    r74017ce r1d6dd2a  
    3737#include <ddf/driver.h>
    3838#include <ddf/log.h>
     39#include <str.h>
    3940
    4041#include "test1.h"
    4142
    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);
     43static errno_t test1_dev_add(ddf_dev_t *dev);
     44static errno_t test1_dev_remove(ddf_dev_t *dev);
     45static errno_t test1_dev_gone(ddf_dev_t *dev);
     46static errno_t test1_fun_online(ddf_fun_t *fun);
     47static errno_t test1_fun_offline(ddf_fun_t *fun);
    4748
    4849static driver_ops_t driver_ops = {
     
    7374 * @param score Device match score.
    7475 */
    75 static int register_fun_verbose(ddf_dev_t *parent, const char *message,
     76static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,
    7677    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)
    7879{
    7980        ddf_fun_t *fun = NULL;
    80         int rc;
     81        errno_t rc;
    8182
    8283        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
     
    141142 * @return Error code reporting success of the operation.
    142143 */
    143 static int test1_dev_add(ddf_dev_t *dev)
     144static errno_t test1_dev_add(ddf_dev_t *dev)
    144145{
    145146        ddf_fun_t *fun_a;
    146147        test1_t *test1;
    147148        const char *dev_name;
    148         int rc;
     149        errno_t rc;
    149150
    150151        dev_name = ddf_dev_get_name(dev);
     
    196197}
    197198
    198 static int fun_remove(ddf_fun_t *fun, const char *name)
    199 {
    200         int rc;
     199static errno_t fun_remove(ddf_fun_t *fun, const char *name)
     200{
     201        errno_t rc;
    201202
    202203        ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name);
     
    217218}
    218219
    219 static int fun_unbind(ddf_fun_t *fun, const char *name)
    220 {
    221         int rc;
     220static errno_t fun_unbind(ddf_fun_t *fun, const char *name)
     221{
     222        errno_t rc;
    222223
    223224        ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name);
     
    232233}
    233234
    234 static int test1_dev_remove(ddf_dev_t *dev)
     235static errno_t test1_dev_remove(ddf_dev_t *dev)
    235236{
    236237        test1_t *test1 = (test1_t *)ddf_dev_data_get(dev);
    237         int rc;
     238        errno_t rc;
    238239
    239240        ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev);
     
    260261}
    261262
    262 static int test1_dev_gone(ddf_dev_t *dev)
     263static errno_t test1_dev_gone(ddf_dev_t *dev)
    263264{
    264265        test1_t *test1 = (test1_t *)ddf_dev_data_get(dev);
    265         int rc;
     266        errno_t rc;
    266267
    267268        ddf_msg(LVL_DEBUG, "test1_dev_remove(%p)", dev);
     
    288289}
    289290
    290 static int test1_fun_online(ddf_fun_t *fun)
     291static errno_t test1_fun_online(ddf_fun_t *fun)
    291292{
    292293        ddf_msg(LVL_DEBUG, "test1_fun_online()");
     
    294295}
    295296
    296 static int test1_fun_offline(ddf_fun_t *fun)
     297static errno_t test1_fun_offline(ddf_fun_t *fun)
    297298{
    298299        ddf_msg(LVL_DEBUG, "test1_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.