]>
git.saurik.com Git - apple/xnu.git/blob - libkern/libkern/c++/OSUnserialize.h
aa5e7e495c12100c50f8db7d884dfb6fffb8f5ff
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 /* OSUnserialize.h created by rsulack on Mon 23-Nov-1998 */
27 #ifndef _OS_OSUNSERIALIZE_H
28 #define _OS_OSUNSERIALIZE_H
30 #include <sys/appleapiopts.h>
35 /*! @function OSUnserializeXML
36 @abstract Recreates an OS Container object from its previously serialized OS Container class instance data.
37 @param buffer pointer to buffer containing XML data representing the object to be recreated.
38 @param errorString if this is a valid pointer and the XML parser finds a error in buffer, errorString contains text indicating the line number and type of error encountered.
39 @result Pointer to the recreated object, or zero on failure. */
41 extern OSObject
* OSUnserializeXML ( const char * buffer
, OSString
** errorString
= 0 );
43 #ifdef __APPLE_API_OBSOLETE
44 extern OSObject
* OSUnserialize ( const char * buffer
, OSString
** errorString
= 0 );
45 #endif /* __APPLE_API_OBSOLETE */
47 #endif /* _OS_OSUNSERIALIZE_H */