Subversion Repositories public

Rev

Rev 51 | Rev 61 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 51 Rev 55
Line 33... Line 33...
33
      rStr.append(","); \
33
      rStr.append(","); \
34
    } \
34
    } \
35
  })
35
  })
36
36
37
37
-
 
38
38
int32_t InotifyEvent::GetDescriptor() const
39
int32_t InotifyEvent::GetDescriptor() const
39
{
40
{
40
  return  m_pWatch != NULL            // if watch exists
41
  return  m_pWatch != NULL            // if watch exists
41
      ?   m_pWatch->GetDescriptor()   // return its descriptor
42
      ?   m_pWatch->GetDescriptor()   // return its descriptor
42
      :   -1;                         // else return -1
43
      :   -1;                         // else return -1
Line 52... Line 53...
52
    return IN_ATTRIB;
53
    return IN_ATTRIB;
53
  else if (rName == "IN_CLOSE_WRITE")
54
  else if (rName == "IN_CLOSE_WRITE")
54
    return IN_CLOSE_WRITE;
55
    return IN_CLOSE_WRITE;
55
  else if (rName == "IN_CLOSE_NOWRITE")
56
  else if (rName == "IN_CLOSE_NOWRITE")
56
    return IN_CLOSE_NOWRITE;
57
    return IN_CLOSE_NOWRITE;
-
 
58
  else if (rName == "IN_OPEN")
-
 
59
    return IN_OPEN;
57
  else if (rName == "IN_MOVED_FROM")
60
  else if (rName == "IN_MOVED_FROM")
58
    return IN_MOVED_FROM;
61
    return IN_MOVED_FROM;
59
  else if (rName == "IN_MOVED_TO")
62
  else if (rName == "IN_MOVED_TO")
60
    return IN_MOVED_TO;
63
    return IN_MOVED_TO;
61
  else if (rName == "IN_CREATE")
64
  else if (rName == "IN_CREATE")