Ignore:
File:
1 edited

Legend:

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

    r1d6dd2a r267f235  
    3434#include <stdio.h>
    3535#include <errno.h>
    36 #include <str.h>
    3736#include <str_error.h>
    3837#include <ddf/driver.h>
     
    4140#define NAME "test2"
    4241
    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);
     42static int test2_dev_add(ddf_dev_t *dev);
     43static int test2_dev_remove(ddf_dev_t *dev);
     44static int test2_dev_gone(ddf_dev_t *dev);
     45static int test2_fun_online(ddf_fun_t *fun);
     46static int test2_fun_offline(ddf_fun_t *fun);
    4847
    4948static driver_ops_t driver_ops = {
     
    7877 * @param score Device match score.
    7978 */
    80 static errno_t register_fun_verbose(ddf_dev_t *parent, const char *message,
     79static int register_fun_verbose(ddf_dev_t *parent, const char *message,
    8180    const char *name, const char *match_id, int match_score, ddf_fun_t **pfun)
    8281{
    8382        ddf_fun_t *fun;
    84         errno_t rc;
     83        int rc;
    8584
    8685        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
     
    119118 * @return Always EOK.
    120119 */
    121 static errno_t plug_unplug(void *arg)
     120static int plug_unplug(void *arg)
    122121{
    123122        test2_t *test2 = (test2_t *) arg;
    124123        ddf_fun_t *fun_a;
    125         errno_t rc;
     124        int rc;
    126125
    127126        async_usleep(1000);
     
    158157}
    159158
    160 static errno_t fun_remove(ddf_fun_t *fun, const char *name)
    161 {
    162         errno_t rc;
     159static int fun_remove(ddf_fun_t *fun, const char *name)
     160{
     161        int rc;
    163162
    164163        ddf_msg(LVL_DEBUG, "fun_remove(%p, '%s')", fun, name);
     
    179178}
    180179
    181 static errno_t fun_unbind(ddf_fun_t *fun, const char *name)
    182 {
    183         errno_t rc;
     180static int fun_unbind(ddf_fun_t *fun, const char *name)
     181{
     182        int rc;
    184183
    185184        ddf_msg(LVL_DEBUG, "fun_unbind(%p, '%s')", fun, name);
     
    194193}
    195194
    196 static errno_t test2_dev_add(ddf_dev_t *dev)
     195static int test2_dev_add(ddf_dev_t *dev)
    197196{
    198197        test2_t *test2;
     
    225224}
    226225
    227 static errno_t test2_dev_remove(ddf_dev_t *dev)
     226static int test2_dev_remove(ddf_dev_t *dev)
    228227{
    229228        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    230         errno_t rc;
     229        int rc;
    231230
    232231        ddf_msg(LVL_DEBUG, "test2_dev_remove(%p)", dev);
     
    259258}
    260259
    261 static errno_t test2_dev_gone(ddf_dev_t *dev)
     260static int test2_dev_gone(ddf_dev_t *dev)
    262261{
    263262        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    264         errno_t rc;
     263        int rc;
    265264
    266265        ddf_msg(LVL_DEBUG, "test2_dev_gone(%p)", dev);
     
    294293
    295294
    296 static errno_t test2_fun_online(ddf_fun_t *fun)
     295static int test2_fun_online(ddf_fun_t *fun)
    297296{
    298297        ddf_msg(LVL_DEBUG, "test2_fun_online()");
     
    300299}
    301300
    302 static errno_t test2_fun_offline(ddf_fun_t *fun)
     301static int test2_fun_offline(ddf_fun_t *fun)
    303302{
    304303        ddf_msg(LVL_DEBUG, "test2_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.