Changeset 5828554 in mainline for abi/include/abi/log.h


Ignore:
Timestamp:
2014-01-19T14:37:22Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf982ff
Parents:
2f591127 (diff), 476f62c (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 mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • abi/include/abi/log.h

    r2f591127 r5828554  
    11/*
    22 * Copyright (c) 2011 Vojtech Horky
     3 * Copyright (c) 2011 Jiri Svoboda
     4 * Copyright (c) 2013 Martin Sucha
    35 * All rights reserved.
    46 *
     
    2729 */
    2830
    29 /** @addtogroup libusbhid
     31/** @addtogroup genericlog
    3032 * @{
    3133 */
    3234/** @file
    33  * Client functions for accessing USB HID interface.
    3435 */
    35 #ifndef LIBUSBHID_CLASSES_HID_IFACE_H_
    36 #define LIBUSBHID_CLASSES_HID_IFACE_H_
    3736
    38 #include <sys/types.h>
    39 #include <async.h>
     37#ifndef ABI_LOG_H_
     38#define ABI_LOG_H_
    4039
    41 extern int usbhid_dev_get_event_length(async_sess_t *, size_t *);
    42 extern int usbhid_dev_get_event(async_sess_t *, uint8_t *, size_t, size_t *,
    43     int *, unsigned int);
    44 extern int usbhid_dev_get_report_descriptor_length(async_sess_t *, size_t *);
    45 extern int usbhid_dev_get_report_descriptor(async_sess_t *, uint8_t *, size_t,
    46     size_t *);
     40/** Log message level. */
     41typedef enum {
     42        /** Fatal error, program is not able to recover at all. */
     43        LVL_FATAL,
     44        /** Serious error but the program can recover from it. */
     45        LVL_ERROR,
     46        /** Easily recoverable problem. */
     47        LVL_WARN,
     48        /** Information message that ought to be printed by default. */
     49        LVL_NOTE,
     50        /** Debugging purpose message. */
     51        LVL_DEBUG,
     52        /** More detailed debugging message. */
     53        LVL_DEBUG2,
     54       
     55        /** For checking range of values */
     56        LVL_LIMIT
     57} log_level_t;
     58
     59/* Who is the source of the message? */
     60typedef enum {
     61        LF_OTHER = 0,
     62        LF_USPACE,
     63        LF_ARCH
     64} log_facility_t;
    4765
    4866#endif
    49 /**
    50  * @}
     67
     68/** @}
    5169 */
Note: See TracChangeset for help on using the changeset viewer.