Blame src/unix/darwin-stub.h

Packit Service 7c31a4
/* Copyright libuv project contributors. All rights reserved.
Packit Service 7c31a4
 *
Packit Service 7c31a4
 * Permission is hereby granted, free of charge, to any person obtaining a copy
Packit Service 7c31a4
 * of this software and associated documentation files (the "Software"), to
Packit Service 7c31a4
 * deal in the Software without restriction, including without limitation the
Packit Service 7c31a4
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
Packit Service 7c31a4
 * sell copies of the Software, and to permit persons to whom the Software is
Packit Service 7c31a4
 * furnished to do so, subject to the following conditions:
Packit Service 7c31a4
 *
Packit Service 7c31a4
 * The above copyright notice and this permission notice shall be included in
Packit Service 7c31a4
 * all copies or substantial portions of the Software.
Packit Service 7c31a4
 *
Packit Service 7c31a4
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit Service 7c31a4
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit Service 7c31a4
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit Service 7c31a4
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit Service 7c31a4
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Packit Service 7c31a4
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
Packit Service 7c31a4
 * IN THE SOFTWARE.
Packit Service 7c31a4
 */
Packit Service 7c31a4
Packit Service 7c31a4
#ifndef UV_DARWIN_STUB_H_
Packit Service 7c31a4
#define UV_DARWIN_STUB_H_
Packit Service 7c31a4
Packit Service 7c31a4
#include <stdint.h>
Packit Service 7c31a4
Packit Service 7c31a4
struct CFArrayCallBacks;
Packit Service 7c31a4
struct CFRunLoopSourceContext;
Packit Service 7c31a4
struct FSEventStreamContext;
Packit Service 7c31a4
Packit Service 7c31a4
typedef double CFAbsoluteTime;
Packit Service 7c31a4
typedef double CFTimeInterval;
Packit Service 7c31a4
typedef int FSEventStreamEventFlags;
Packit Service 7c31a4
typedef int OSStatus;
Packit Service 7c31a4
typedef long CFIndex;
Packit Service 7c31a4
typedef struct CFArrayCallBacks CFArrayCallBacks;
Packit Service 7c31a4
typedef struct CFRunLoopSourceContext CFRunLoopSourceContext;
Packit Service 7c31a4
typedef struct FSEventStreamContext FSEventStreamContext;
Packit Service 7c31a4
typedef uint32_t FSEventStreamCreateFlags;
Packit Service 7c31a4
typedef uint64_t FSEventStreamEventId;
Packit Service 7c31a4
typedef unsigned CFStringEncoding;
Packit Service 7c31a4
typedef void* CFAllocatorRef;
Packit Service 7c31a4
typedef void* CFArrayRef;
Packit Service 7c31a4
typedef void* CFBundleRef;
Packit Service 7c31a4
typedef void* CFDictionaryRef;
Packit Service 7c31a4
typedef void* CFRunLoopRef;
Packit Service 7c31a4
typedef void* CFRunLoopSourceRef;
Packit Service 7c31a4
typedef void* CFStringRef;
Packit Service 7c31a4
typedef void* CFTypeRef;
Packit Service 7c31a4
typedef void* FSEventStreamRef;
Packit Service 7c31a4
Packit Service 7c31a4
typedef void (*FSEventStreamCallback)(const FSEventStreamRef,
Packit Service 7c31a4
                                      void*,
Packit Service 7c31a4
                                      size_t,
Packit Service 7c31a4
                                      void*,
Packit Service 7c31a4
                                      const FSEventStreamEventFlags*,
Packit Service 7c31a4
                                      const FSEventStreamEventId*);
Packit Service 7c31a4
Packit Service 7c31a4
struct CFRunLoopSourceContext {
Packit Service 7c31a4
  CFIndex version;
Packit Service 7c31a4
  void* info;
Packit Service 7c31a4
  void* pad[7];
Packit Service 7c31a4
  void (*perform)(void*);
Packit Service 7c31a4
};
Packit Service 7c31a4
Packit Service 7c31a4
struct FSEventStreamContext {
Packit Service 7c31a4
  CFIndex version;
Packit Service 7c31a4
  void* info;
Packit Service 7c31a4
  void* pad[3];
Packit Service 7c31a4
};
Packit Service 7c31a4
Packit Service 7c31a4
static const CFStringEncoding kCFStringEncodingUTF8 = 0x8000100;
Packit Service 7c31a4
static const OSStatus noErr = 0;
Packit Service 7c31a4
Packit Service 7c31a4
static const FSEventStreamEventId kFSEventStreamEventIdSinceNow = -1;
Packit Service 7c31a4
Packit Service 7c31a4
static const int kFSEventStreamCreateFlagNoDefer = 2;
Packit Service 7c31a4
static const int kFSEventStreamCreateFlagFileEvents = 16;
Packit Service 7c31a4
Packit Service 7c31a4
static const int kFSEventStreamEventFlagEventIdsWrapped = 8;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagHistoryDone = 16;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemChangeOwner = 0x4000;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemCreated = 0x100;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemFinderInfoMod = 0x2000;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemInodeMetaMod = 0x400;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemIsDir = 0x20000;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemModified = 0x1000;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemRemoved = 0x200;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemRenamed = 0x800;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagItemXattrMod = 0x8000;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagKernelDropped = 4;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagMount = 64;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagRootChanged = 32;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagUnmount = 128;
Packit Service 7c31a4
static const int kFSEventStreamEventFlagUserDropped = 2;
Packit Service 7c31a4
Packit Service 7c31a4
#endif  /* UV_DARWIN_STUB_H_ */