storage.cc 535 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ** © 2014 by Philipp Dunkel <pip@pipobscure.com>
  3. ** Licensed under MIT License.
  4. */
  5. struct fse_event {
  6. UInt64 id;
  7. UInt32 flags;
  8. CFStringRef path;
  9. fse_event(CFStringRef eventPath, UInt32 eventFlag, UInt64 eventId) {
  10. this->path = eventPath;
  11. this->flags = eventFlag;
  12. this->id = eventId;
  13. if (this->path != NULL)
  14. CFRetain(this->path);
  15. }
  16. ~fse_event() {
  17. if (this->path != NULL)
  18. CFRelease(this->path);
  19. }
  20. private:
  21. fse_event(const fse_event&);
  22. void operator=(const fse_event&);
  23. };