Add the obvious node_ref constructor
This commit is contained in:
@@ -16,6 +16,7 @@ struct entry_ref;
|
|||||||
|
|
||||||
struct node_ref {
|
struct node_ref {
|
||||||
node_ref();
|
node_ref();
|
||||||
|
node_ref(dev_t device, ino_t node);
|
||||||
node_ref(const node_ref &ref);
|
node_ref(const node_ref &ref);
|
||||||
|
|
||||||
bool operator==(const node_ref &ref) const;
|
bool operator==(const node_ref &ref) const;
|
||||||
|
|||||||
@@ -38,7 +38,15 @@ node_ref::node_ref()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy constructor
|
|
||||||
|
node_ref::node_ref(dev_t device, ino_t node)
|
||||||
|
:
|
||||||
|
device(device),
|
||||||
|
node(node)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
node_ref::node_ref(const node_ref &ref)
|
node_ref::node_ref(const node_ref &ref)
|
||||||
: device((dev_t)-1),
|
: device((dev_t)-1),
|
||||||
node((ino_t)-1)
|
node((ino_t)-1)
|
||||||
|
|||||||
Reference in New Issue
Block a user