2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 Copyright 2005, Apple, Inc. All rights reserved.
29 #include <malloc/malloc.h>
31 /* Stubs for functions in libauto used by CoreFoundation. */
33 typedef malloc_zone_t auto_zone_t
;
34 typedef enum { AUTO_OBJECT_SCANNED
, AUTO_OBJECT_UNSCANNED
, AUTO_MEMORY_SCANNED
, AUTO_MEMORY_UNSCANNED
} auto_memory_type_t
;
36 CF_INLINE auto_zone_t
*auto_zone(void) { return NULL
; }
37 CF_INLINE
void* auto_zone_allocate_object(auto_zone_t
*zone
, size_t size
, auto_memory_type_t type
, boolean_t rc
, boolean_t clear
) { return NULL
; }
38 CF_INLINE
const void *auto_zone_base_pointer(auto_zone_t
*zone
, const void *ptr
) { return NULL
; }
39 CF_INLINE
void auto_zone_retain(auto_zone_t
*zone
, void *ptr
) {}
40 CF_INLINE
unsigned int auto_zone_release(auto_zone_t
*zone
, void *ptr
) { return 0; }
41 CF_INLINE
unsigned int auto_zone_retain_count(auto_zone_t
*zone
, const void *ptr
) { return 0; }
42 CF_INLINE
void auto_zone_set_layout_type(auto_zone_t
*zone
, void *ptr
, auto_memory_type_t type
) {}
43 CF_INLINE
void auto_zone_write_barrier_range(auto_zone_t
*zone
, void *address
, size_t size
) {}