• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_
6#define SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_
7
8#include <bsm/libbsm.h>
9
10#include "sandbox/sandbox_export.h"
11
12// Declare or include public types.
13#if !defined(MAC_OS_X_VERSION_10_7) || \
14    MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
15
16extern "C" {
17typedef void* xpc_object_t;
18}  // extern "C"
19
20#else
21
22#include <xpc/xpc.h>
23
24#endif
25
26// Declare private types.
27extern "C" {
28typedef struct _xpc_pipe_s* xpc_pipe_t;
29}  // extern "C"
30
31#endif  // SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_
32