NodeMonitor: Revert enums back to #defines
While enums are presented much more clearly in the docs and the values didn't change this apparently caused some issues so we're going back to using #defines. Also update the docs changing the \var tags to \def tag and putting the description in a \brief tag.
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
* Clemens Zeidler, [email protected]
|
||||
*
|
||||
* Corresponds to:
|
||||
* headers/os/storage/NodeMonitor.h hrev47402
|
||||
* src/kits/storage/NodeMonitor.cpp hrev47402
|
||||
* headers/os/storage/NodeMonitor.h hrev47403
|
||||
* src/kits/storage/NodeMonitor.cpp hrev47403
|
||||
*/
|
||||
|
||||
|
||||
@@ -122,99 +122,103 @@
|
||||
*/
|
||||
|
||||
|
||||
//// The "opcode" field of the B_NODE_MONITOR notification message you get.
|
||||
// The "opcode" field of the B_NODE_MONITOR notification message you get.
|
||||
|
||||
|
||||
/*!
|
||||
\var B_ENTRY_CREATED
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" is set when entry is
|
||||
created.
|
||||
\def B_ENTRY_CREATED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" is set when entry is
|
||||
created.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_ENTRY_REMOVED
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" is set when entry is
|
||||
removed.
|
||||
\def B_ENTRY_REMOVED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" is set when entry is
|
||||
removed.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_ENTRY_MOVED
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" is set when entry is
|
||||
moved.
|
||||
\def B_ENTRY_MOVED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" is set when entry is
|
||||
moved.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_STAT_CHANGED
|
||||
\def B_STAT_CHANGED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" set when stat info
|
||||
changes.
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" set when stat info
|
||||
changes. More information can be found in the "fields" field.
|
||||
More information can be found in the "fields" field.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_ATTR_CHANGED
|
||||
\def B_ATTR_CHANGED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" set when attribute
|
||||
changes.
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" set when attribute
|
||||
changes. More information can be found in the "cause" field.
|
||||
More information can be found in the "cause" field.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_DEVICE_MOUNTED
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" set when device is
|
||||
mounted.
|
||||
\def B_DEVICE_MOUNTED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" set when device is
|
||||
mounted.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_DEVICE_UNMOUNTED
|
||||
|
||||
\c B_NODE_MONITOR notification message "opcode" set when device is
|
||||
unmounted.
|
||||
\def B_DEVICE_UNMOUNTED
|
||||
\brief \c B_NODE_MONITOR notification message "opcode" set when device is
|
||||
unmounted.
|
||||
|
||||
\since BeOS R3
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_ATTR_CREATED
|
||||
// More specific info in the "cause" field of B_ATTR_CHANGED notification
|
||||
// messages.
|
||||
|
||||
\c B_ATTR_CHANGED notification message "cause" set when attribute is
|
||||
created.
|
||||
|
||||
/*!
|
||||
\def B_ATTR_CREATED
|
||||
\brief \c B_ATTR_CHANGED notification message "cause" set when attribute is
|
||||
created.
|
||||
|
||||
\since Haiku R1
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var B_ATTR_REMOVED
|
||||
|
||||
\c B_ATTR_CHANGED notification message "cause" set when attribute is
|
||||
removed.
|
||||
\def B_ATTR_REMOVED
|
||||
\brief \c B_ATTR_CHANGED notification message "cause" set when attribute is
|
||||
removed.
|
||||
|
||||
\since Haiku R1
|
||||
*/
|
||||
|
||||
|
||||
// More specific info in the "fields" field of B_STAT_CHANGED notification
|
||||
// messages, specifying what parts of the stat data have actually been
|
||||
// changed.
|
||||
|
||||
|
||||
/*!
|
||||
\var B_STAT_MODE
|
||||
\brief Set when stat mode changes.
|
||||
|
||||
@@ -32,25 +32,21 @@ enum {
|
||||
// The presence and meaning of the other fields in that message specifying what
|
||||
// exactly caused the notification depend on this value.
|
||||
|
||||
enum {
|
||||
B_ENTRY_CREATED = 1,
|
||||
B_ENTRY_REMOVED,
|
||||
B_ENTRY_MOVED,
|
||||
B_STAT_CHANGED,
|
||||
B_ATTR_CHANGED,
|
||||
B_DEVICE_MOUNTED,
|
||||
B_DEVICE_UNMOUNTED
|
||||
};
|
||||
#define B_ENTRY_CREATED 1
|
||||
#define B_ENTRY_REMOVED 2
|
||||
#define B_ENTRY_MOVED 3
|
||||
#define B_STAT_CHANGED 4
|
||||
#define B_ATTR_CHANGED 5
|
||||
#define B_DEVICE_MOUNTED 6
|
||||
#define B_DEVICE_UNMOUNTED 7
|
||||
|
||||
|
||||
// More specific info in the "cause" field of B_ATTR_CHANGED notification
|
||||
// messages. (Haiku only)
|
||||
|
||||
enum {
|
||||
B_ATTR_CREATED = 1,
|
||||
B_ATTR_REMOVED,
|
||||
// B_ATTR_CHANGED
|
||||
};
|
||||
#define B_ATTR_CREATED 1
|
||||
#define B_ATTR_REMOVED 2
|
||||
// B_ATTR_CHANGED is reused
|
||||
|
||||
|
||||
// More specific info in the "fields" field of B_STAT_CHANGED notification
|
||||
|
||||
Reference in New Issue
Block a user