Changeset b0b4592e in mainline for abi/include/abi/log.h
- Timestamp:
- 2014-03-15T19:21:53Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c773adc
- Parents:
- 2034f98 (diff), 8cffdf5 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/log.h
r2034f98 rb0b4592e 1 1 /* 2 2 * Copyright (c) 2011 Vojtech Horky 3 * Copyright (c) 2011 Jiri Svoboda 4 * Copyright (c) 2013 Martin Sucha 3 5 * All rights reserved. 4 6 * … … 27 29 */ 28 30 29 /** @addtogroup libusbhid31 /** @addtogroup genericlog 30 32 * @{ 31 33 */ 32 34 /** @file 33 * Client functions for accessing USB HID interface.34 35 */ 35 #ifndef LIBUSBHID_CLASSES_HID_IFACE_H_36 #define LIBUSBHID_CLASSES_HID_IFACE_H_37 36 38 #i nclude <sys/types.h>39 # include <async.h>37 #ifndef ABI_LOG_H_ 38 #define ABI_LOG_H_ 40 39 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. */ 41 typedef 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? */ 60 typedef enum { 61 LF_OTHER = 0, 62 LF_USPACE, 63 LF_ARCH 64 } log_facility_t; 47 65 48 66 #endif 49 /** 50 67 68 /** @} 51 69 */
Note:
See TracChangeset
for help on using the changeset viewer.