libXDispatch 0.3.1
include/libdispatch/object.h
Go to the documentation of this file.
00001 /*
00002 * Copyright (c) 2008-2009 Apple Inc. All rights reserved.
00003 * Copyright (c) 2011 MLBA. All rights reserved.
00004 *
00005 * @MLBA_OPEN_LICENSE_HEADER_START@
00006 *
00007 * Licensed under the Apache License, Version 2.0 (the "License");
00008 * you may not use this file except in compliance with the License.
00009 * You may obtain a copy of the License at
00010 * 
00011 *     http://www.apache.org/licenses/LICENSE-2.0
00012 * 
00013 * Unless required by applicable law or agreed to in writing, software
00014 * distributed under the License is distributed on an "AS IS" BASIS,
00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016 * See the License for the specific language governing permissions and
00017 * limitations under the License.
00018 *
00019 * @MLBA_OPEN_LICENSE_HEADER_END@
00020 */
00021 
00022 
00023 
00024 #ifndef __DISPATCH_OBJECT__
00025 #define __DISPATCH_OBJECT__
00026 
00027 #ifndef __DISPATCH_INDIRECT__
00028 #error "Please #include <xdispatch/dispatch.h> instead of this file directly."
00029 #include "base.h" // for HeaderDoc
00030 #endif
00031 
00032 __DISPATCH_BEGIN_DECLS
00033 
00046 DISPATCH_EXPORT void
00047 dispatch_debug(dispatch_object_t object, const char *message, ...);
00048 
00049 DISPATCH_EXPORT void
00050 dispatch_debugv(dispatch_object_t object, const char *message, va_list ap);
00051 
00066 DISPATCH_EXPORT void
00067 dispatch_retain(dispatch_object_t object);
00068 
00085 DISPATCH_EXPORT void
00086 dispatch_release(dispatch_object_t object);
00087 
00100 DISPATCH_EXPORT void *
00101 dispatch_get_context(dispatch_object_t object);
00102 
00116 DISPATCH_EXPORT void
00117 dispatch_set_context(dispatch_object_t object, void *context);
00118 
00140 DISPATCH_EXPORT void
00141 dispatch_set_finalizer_f(dispatch_object_t object,
00142        dispatch_function_t finalizer);
00143 
00162 DISPATCH_EXPORT void
00163 dispatch_suspend(dispatch_object_t object);
00164 
00175 DISPATCH_EXPORT void
00176 dispatch_resume(dispatch_object_t object);
00177 
00178 __DISPATCH_END_DECLS
00179 
00180 #endif

Generated on Wed Feb 22 2012 19:43:56 for libXDispatch by Doxygen 1.7.4
Content © 2011-2012 MLBA (about | privacy) – Design © 2010-2012 Emzeat. All Rights reserved.