mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-04-21 08:59:07 +00:00
28 lines
535 B
C++
28 lines
535 B
C++
![]() |
/*
|
||
|
** © 2014 by Philipp Dunkel <pip@pipobscure.com>
|
||
|
** Licensed under MIT License.
|
||
|
*/
|
||
|
|
||
|
struct fse_event {
|
||
|
UInt64 id;
|
||
|
UInt32 flags;
|
||
|
CFStringRef path;
|
||
|
|
||
|
fse_event(CFStringRef eventPath, UInt32 eventFlag, UInt64 eventId) {
|
||
|
this->path = eventPath;
|
||
|
this->flags = eventFlag;
|
||
|
this->id = eventId;
|
||
|
if (this->path != NULL)
|
||
|
CFRetain(this->path);
|
||
|
}
|
||
|
|
||
|
~fse_event() {
|
||
|
if (this->path != NULL)
|
||
|
CFRelease(this->path);
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
fse_event(const fse_event&);
|
||
|
void operator=(const fse_event&);
|
||
|
};
|