xref: /xnu-10002.81.5/libkern/os/object.c (revision 5e3eaea39dcf651e66cb99ba7d70e32cc4a99587)
1*5e3eaea3SApple OSS Distributions /*
2*5e3eaea3SApple OSS Distributions  * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
3*5e3eaea3SApple OSS Distributions  *
4*5e3eaea3SApple OSS Distributions  * @APPLE_APACHE_LICENSE_HEADER_START@
5*5e3eaea3SApple OSS Distributions  *
6*5e3eaea3SApple OSS Distributions  * Licensed under the Apache License, Version 2.0 (the "License");
7*5e3eaea3SApple OSS Distributions  * you may not use this file except in compliance with the License.
8*5e3eaea3SApple OSS Distributions  * You may obtain a copy of the License at
9*5e3eaea3SApple OSS Distributions  *
10*5e3eaea3SApple OSS Distributions  *     http://www.apache.org/licenses/LICENSE-2.0
11*5e3eaea3SApple OSS Distributions  *
12*5e3eaea3SApple OSS Distributions  * Unless required by applicable law or agreed to in writing, software
13*5e3eaea3SApple OSS Distributions  * distributed under the License is distributed on an "AS IS" BASIS,
14*5e3eaea3SApple OSS Distributions  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*5e3eaea3SApple OSS Distributions  * See the License for the specific language governing permissions and
16*5e3eaea3SApple OSS Distributions  * limitations under the License.
17*5e3eaea3SApple OSS Distributions  *
18*5e3eaea3SApple OSS Distributions  * @APPLE_APACHE_LICENSE_HEADER_END@
19*5e3eaea3SApple OSS Distributions  */
20*5e3eaea3SApple OSS Distributions 
21*5e3eaea3SApple OSS Distributions #include <stdbool.h>
22*5e3eaea3SApple OSS Distributions #include <os/base.h>
23*5e3eaea3SApple OSS Distributions #include <os/object.h>
24*5e3eaea3SApple OSS Distributions #include <kern/assert.h>
25*5e3eaea3SApple OSS Distributions 
26*5e3eaea3SApple OSS Distributions 
27*5e3eaea3SApple OSS Distributions /* XXX temporary until full vtable and refcount support */
28*5e3eaea3SApple OSS Distributions extern struct os_log_s _os_log_default;
29*5e3eaea3SApple OSS Distributions 
30*5e3eaea3SApple OSS Distributions void*
os_retain(void * obj)31*5e3eaea3SApple OSS Distributions os_retain(void *obj)
32*5e3eaea3SApple OSS Distributions {
33*5e3eaea3SApple OSS Distributions 	/* XXX temporary nop */
34*5e3eaea3SApple OSS Distributions 	assert(obj == &_os_log_default);
35*5e3eaea3SApple OSS Distributions 	return obj;
36*5e3eaea3SApple OSS Distributions }
37*5e3eaea3SApple OSS Distributions 
38*5e3eaea3SApple OSS Distributions void
os_release(void * obj __unused)39*5e3eaea3SApple OSS Distributions os_release(void *obj __unused)
40*5e3eaea3SApple OSS Distributions {
41*5e3eaea3SApple OSS Distributions 	/* XXX temporary nop */
42*5e3eaea3SApple OSS Distributions 	assert(obj == &_os_log_default);
43*5e3eaea3SApple OSS Distributions }
44