Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/adb-mouse/adb-mouse.h

    r8bfb163 r132ab5d1  
    11/*
    2  * Copyright (c) 2008 Jiri Svoboda
     2 * Copyright (c) 2017 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup trace
    30  * @{
    31  */
    32 /** @file
     29/** @file ADB mouse driver
    3330 */
    3431
    35 #ifndef ERRORS_H_
    36 #define ERRORS_H_
     32#ifndef ADB_MOUSE_H
     33#define ADB_MOUSE_H
    3734
     35#include <async.h>
     36#include <ddf/driver.h>
     37#include <stdbool.h>
     38
     39/** ADB mouse */
    3840typedef struct {
    39         const char *name;  /**< Error value name (Exx) */
    40         const char *desc;  /**< Error description */
    41 } err_desc_t;
     41        ddf_dev_t *dev;
     42        async_sess_t *parent_sess;
     43        ddf_fun_t *fun;
     44        async_sess_t *client_sess;
     45        bool b1_pressed;
     46        bool b2_pressed;
     47} adb_mouse_t;
    4248
    43 extern const err_desc_t err_desc[];
     49extern int adb_mouse_add(adb_mouse_t *);
     50extern int adb_mouse_remove(adb_mouse_t *);
     51extern int adb_mouse_gone(adb_mouse_t *);
    4452
    4553#endif
Note: See TracChangeset for help on using the changeset viewer.