(file) Return to xmlserializer.h CVS log (file) (dir) Up to [OMI] / omi / xmlserializer

File: [OMI] / omi / xmlserializer / xmlserializer.h (download)
Revision: 1.1, Mon Apr 20 17:20:37 2015 UTC (9 years ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
OMI 1.0.8-1

/*============================================================================
 * Copyright (C) Microsoft Corporation, All rights reserved. 
 *============================================================================
 */

#ifndef _XML_SERIALIZER_H_
#define _XML_SERIALIZER_H_

#include <MI.h>

BEGIN_EXTERNC
// for internal use; not a public api
// Do not define flags with value same as ones below for serializer in MI.h
#define MI_SERIALIZER_FLAGS_INCLUDE_CLASS_ORIGIN 0x100
#define MI_SERIALIZER_FLAGS_INCLUDE_INHERITANCE_HIERARCHY 0x200
// note that MI_SERIALIZER_FLAGS_CLASS_DEEP has same semantics as following
// but i have defined it to make it clear that it is catering to includeInheritedElements option
// and doing this way was also convenient since i could pass in the MessageFlag flags directly into this serializer
#define MI_SERIALIZER_FLAGS_INCLUDE_INHERITED_ELEMENTS 0x400
#define MI_SERIALIZER_FLAGS_INCLUDE_QUALIFIERS 0x800


MI_Result MI_CALL XmlSerializer_Create(
    _In_ MI_Application *application, 
    MI_Uint32 flags,
    _In_z_ MI_Char *format, 
    _Out_ MI_Serializer *serializer);

MI_Result MI_CALL XmlSerializer_Close(
    _Inout_ MI_Serializer *serializer);

MI_Result MI_CALL XmlSerializer_SerializeClass(
    _Inout_ MI_Serializer *serializer, 
    MI_Uint32 flags, 
    _In_ const MI_Class *classObject, 
    _Out_writes_bytes_(clientBufferLength) MI_Uint8 *clientBuffer,
    MI_Uint32 clientBufferLength,
    _Inout_ MI_Uint32 *clientBufferNeeded);

END_EXTERNC
#endif /* _XML_SERIALIZER_H_ */

ViewCVS 0.9.2