summaryrefslogtreecommitdiffstats
path: root/sandbox/mac/xpc_stubs_header.fragment
blob: 8197587fc74816bf76864c03ee83b81b3179949d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_
#define SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_

#include <bsm/libbsm.h>

#include "sandbox/sandbox_export.h"

// Declare or include public types.
#if !defined(MAC_OS_X_VERSION_10_7) || \
    MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7

extern "C" {
typedef void* xpc_object_t;
}  // extern "C"

#else

#include <xpc/xpc.h>

#endif

// Declare private types.
extern "C" {
typedef struct _xpc_pipe_s* xpc_pipe_t;
}  // extern "C"

#endif  // SANDBOX_MAC_XPC_STUBS_HEADER_FRAGMENT_